sftp doesn't work from some OS versions
Posted: Mon Nov 23, 2015 4:04 pm
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.
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.