Page 1 of 1

sftp doesn't work from some OS versions

Posted: Mon Nov 23, 2015 4:04 pm
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.

Re: sftp doesn't work from some OS versions

Posted: Tue Nov 24, 2015 6:58 am
by FTP
Already tested it with Ubuntu 14.04, everything worked fine, so do you have any special SSH configuration?

Re: sftp doesn't work from some OS versions

Posted: Tue Nov 24, 2015 1:35 pm
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?

Re: sftp doesn't work from some OS versions

Posted: Wed Nov 25, 2015 3:17 pm
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

Re: sftp doesn't work from some OS versions

Posted: Thu Nov 26, 2015 3:38 am
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!

Re: sftp doesn't work from some OS versions

Posted: Tue Mar 22, 2016 3:55 pm
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!

Re: sftp doesn't work from some OS versions

Posted: Wed Mar 23, 2016 10:41 am
by FTP
OK, WingFTP does not support SCP protocol, please use SFTP instead.

Re: sftp doesn't work from some OS versions

Posted: Sat Jul 23, 2016 8:30 am
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.