[
https://issues.apache.org/jira/browse/SSHD-621?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=15085465#comment-15085465
]
Oliver Stöneberg commented on SSHD-621:
---------------------------------------
I also tried psftp by PuTTY and sftp of an ubuntu installation and it also
fails with those:
sftp (added full output as attachment):
debug1: channel 0: new [client-session]
debug1: Entering interactive session.
debug1: Sending environment.
debug1: Sending env LANG = en_US.UTF-8
debug1: Sending subsystem: sftp
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0
sh: /usr/libexec/sftp-server: not found
debug1: channel 0: free: client-session, nchannels 1
debug1: fd 0 clearing O_NONBLOCK
Transferred: sent 2480, received 2048 bytes, in 0.0 seconds
Bytes per second: sent 66418.5, received 54848.9
debug1: Exit status 127
Connection closed
psftp:
sh: /usr/libexec/sftp-server: not found
Fatal: Received unexpected end-of-file from SFTP server
So the server doesn't support SFTP but they both give a different error
message. Still it shouldn't hang.
> ClientSession.createSftpClient() doesn't return when server doesn't support
> SFTP
> --------------------------------------------------------------------------------
>
> Key: SSHD-621
> URL: https://issues.apache.org/jira/browse/SSHD-621
> Project: MINA SSHD
> Issue Type: Bug
> Reporter: Oliver Stöneberg
> Assignee: Goldstein Lyor
> Attachments: sftp.log, sftp_hang.txt
>
>
> I am trying to connect to a server via SFTP and the
> ClientSession.createSftpClient() call hangs. I see the following warning
> which doesn't seem to be propagated:
> [org.apache.sshd.client.subsystem.sftp.DefaultSftpClient]
> onClose(ChannelSubsystem[id=0,
> recipient=0]-ClientSessionImpl[test@/XX.XX.XX.XXX:44][sftp]) closed before
> version negotiated
> I tried to connect to server with another SFTP client and that client can't
> connect either.
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)