sftp doesn't work from some OS versions

Here you can submit your bug reports.
Post Reply
matt1234
Posts: 4
Joined: Mon Nov 23, 2015 3:53 pm

sftp doesn't work from some OS versions

Post by matt1234 »

Attempting to log into the ftp server using sftp does not work for some OS versions. Not working includes:

Mac OS X 10.11.1
Fedora 23
Ubuntu 14

Working includes:

Mac OS X 10.9.5
CentOS 6
CentOS 7
Ubuntu 12
Suse 11

On a Mac the error looks like the following (with user names, IPs, and domains replaced):

$ sftp -v -o IdentityFile=XXX <user@site>
OpenSSH_6.9p1, LibreSSL 2.1.7
debug1: Reading configuration data <...>/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 20: Applying options for *
debug1: /etc/ssh/ssh_config line 53: Applying options for *
debug1: Connecting to <site> [X.X.X.X] port 22.
debug1: Connection established.
debug1: identity file <file> type 1
debug1: key_load_public: No such file or directory
debug1: identity file <file> type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.9
debug1: Remote protocol version 2.0, remote software version WeOnlyDo-WingFTP
debug1: no match: WeOnlyDo-WingFTP
debug1: Authenticating to <site>:22 as '<user>'
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-sha1 none
debug1: kex: client->server aes128-cbc hmac-sha1 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<7680<8192) sent
Received disconnect from X.X.X.X: 2: Handshake failed
Disconnected from X.X.X.X
Connection closed


The same pattern is seen on Fedora 23.

The server does not show anything interesting in the log, just a message like:

[02] Thu, 19 Nov 2015 15:05:59 (0941580) Connected from 38.106.199.6 (local address 10.187.62.79, port 22)
[01] Thu, 19 Nov 2015 15:05:59 (0941580) SSH session receive user name:<user>
[01] Thu, 19 Nov 2015 15:05:59 (0941580) SSH session receive password of user <user>
[01] Thu, 19 Nov 2015 15:05:59 (0941580) Failed in public key authentication.
[02] Thu, 19 Nov 2015 15:06:00 (0941580) Closed session,disconnected from 38.106.199.6. The reason is:Unable to complete handshake.
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: sftp doesn't work from some OS versions

Post by FTP »

Already tested it with Ubuntu 14.04, everything worked fine, so do you have any special SSH configuration?
matt1234
Posts: 4
Joined: Mon Nov 23, 2015 3:53 pm

Re: sftp doesn't work from some OS versions

Post by matt1234 »

I do not currently have access to an Ubuntu 14 system. I do have access to OS X 10.11.1 and Fedora 23 systems that show the exact failure. Fedora 22 also show the same problem. Fedora 21 does not.

I do not know of any ssh configurations that would affect what appears to be a disconnect from the server. Can you suggest any to look at?
matt1234
Posts: 4
Joined: Mon Nov 23, 2015 3:53 pm

Re: sftp doesn't work from some OS versions

Post by matt1234 »

I can confirm that Ubuntu 14 does work. That gives:

Not working:

Mac OS X 10.11.1
Fedora 22
Fedora 23

Working:

Mac OS X 10.9.5
CentOS 6
CentOS 7
Ubuntu 12
Ubuntu 14
Suse 11
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: sftp doesn't work from some OS versions

Post by FTP »

OK, it seems Ubuntu 15 has the similar issue like you said, it is caused by the maximum public-key component size, and we will fix it in the next release, thanks for your report!
wwwald
Posts: 1
Joined: Tue Mar 22, 2016 3:53 pm

Re: sftp doesn't work from some OS versions

Post by wwwald »

I'm currently also running into this problem, connecting to Wing FTP Server using scp from an Ubuntu machine.
Is there a workaround, as I have no control over server upgrades whatsoever?

Thanks!
FTP
Site Admin
Posts: 2072
Joined: Tue Sep 29, 2009 6:09 am

Re: sftp doesn't work from some OS versions

Post by FTP »

OK, WingFTP does not support SCP protocol, please use SFTP instead.
Spriter
Posts: 1
Joined: Thu Jul 21, 2016 6:36 pm

Re: sftp doesn't work from some OS versions

Post by Spriter »

FTP wrote:OK, WingFTP does not support SCP protocol, please use SFTP instead too.
D'oh, I've been trying to use the SCP protocol all this time. It worked after using SFTP. Glad I saw your post.
Post Reply