[jira] [Created] (SSHD-1340) SSH Certificate support

2024-04-24 Thread Sreedhar J (Jira)
Sreedhar J created SSHD-1340:


 Summary: SSH Certificate support
 Key: SSHD-1340
 URL: https://issues.apache.org/jira/browse/SSHD-1340
 Project: MINA SSHD
  Issue Type: Question
Reporter: Sreedhar J


is Apache SSHD/SFTP Server support SSH Certificates? If yes, please provide the 
details.

looks like openssh supports Certificate based authentication.

https://access.redhat.com/documentation/en-us/red_hat_enterprise_linux/6/html/deployment_guide/sec-using_openssh_certificate_authentication



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



Re: [I] sshd-sftp - Not able to get files from windows server [mina-sshd]

2024-04-24 Thread via GitHub


tomaswolf commented on issue #489:
URL: https://github.com/apache/mina-sshd/issues/489#issuecomment-2075910029

   Decimal 438 is octal 666 (hex 1B6) and thus reflects the rw-rw-rw- 
permissions correctly. But it looks as if the server does not return the file 
type flags. It's supposed to return in bits 12-16 (mask 0xf000) bit 
combinations that tell what kind of file (regular file, link, directory, ...) 
it is.
   
   Granted, for SFTP version 3 the [draft 
RFC](https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-02#section-5)
 is a bit unclear about this as it only says
   > The `permissions' field contains a bit mask of file permissions as defined 
by posix.
   
   From SFTP version 4 on, the [draft 
RFCs](https://datatracker.ietf.org/doc/html/draft-ietf-secsh-filexfer-03#section-5.2)
 have an extra field for the file type.
   
   What kind of SFTP server is running on that Windows Server?
   
   You could also try setting a breakpoint [where we parse these flags from the 
server's directory 
listing](https://github.com/apache/mina-sshd/blob/69b64dad16af3d11fab952879bd776e2e8716d47/sshd-sftp/src/main/java/org/apache/sshd/sftp/client/impl/AbstractSftpClient.java#L901)
 and then stepping into `readAttributes`. Perhaps there's a bug there.


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org



[I] sshd-sftp - Not able to get files from windows server [mina-sshd]

2024-04-24 Thread via GitHub


learncourse2024 opened a new issue, #489:
URL: https://github.com/apache/mina-sshd/issues/489

   ### Version
   
   2.11.0
   
   ### Bug description
   
   sshd-sftp 2.11.0 version - cannot list files in a directory when connecting 
to windows sftp server(windows server 2019)
   
   
   
   
   ### Actual behavior
   
   We are using sshd-sftp 2.11.0 version to connect to SFTP servers and do 
transfer of files from SFTP to AWS S3
   It works fine when connecting to linux based SFTP servers. But we are facing 
issues when connecting to windows based sftp servers. 
   SftpClientDirectoryScanner.scandir() does not list files in the directory. 
   On debugging we observed that the code - attrs.isRegularFile() returns false 
as it returns getPermissions() as 438  even when the file permissions are 
rw-rw-rw-
   
   
   
   ### Expected behavior
   
   The files should be listed from the respective directory
   
   ### Relevant log output
   
   _No response_
   
   ### Other information
   
   _No response_


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org


-
To unsubscribe, e-mail: dev-unsubscr...@mina.apache.org
For additional commands, e-mail: dev-h...@mina.apache.org