Passwordless SSH (sftp) key

Please post here if you have problems in using Wing FTP Server.

Passwordless SSH (sftp) key

Postby niqbert » Mon Dec 10, 2012 9:50 am

Passwordless SFTP over SSH doesn't seem to work.

I generated a key via "ssh-keygen -t rsa", with empty passphrase. ( viewtopic.php?f=5&t=502 )
Copied over the pub file to the WingFTP server and set the pub file at the account settings in WingFTP.

Any idea what goes wrong and how I can get passwordless connections going with priv/pub keys?

[testsftp@testserver ~]$ sftp -v testuser@sftpserver
Connecting to sftpserver...
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to sftpserver [###.###.###.###] port 22.
debug1: Connection established.
debug1: identity file /home/testsftp/.ssh/id_rsa type 1
debug1: identity file /home/testsftp/.ssh/id_dsa type -1
debug1: Remote protocol version 2.0, remote software version WingFTPserver
debug1: no match: WingFTPserver
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_5.3
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-cbc hmac-md5 none
debug1: kex: client->server aes128-cbc hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Host sftpserver' is known and matches the RSA host key.
debug1: Found key in /home/testsftp/.ssh/known_hosts:1
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering public key: /home/testsftp/.ssh/id_rsa
debug1: Server accepts key: pkalg ssh-rsa blen 277
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/testsftp/.ssh/id_dsa
debug1: Next authentication method: password
testuser@sftpserver's password:
debug1: Authentication succeeded (password).
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

Domain log:
[02] Mon, 10 Dec 2012 10:34:07 (0022714) Connected from ###.###.###.### (local address ###.###.###.###, port 22)
[01] Mon, 10 Dec 2012 10:34:07 (0022714) SSH session receive user name:testuser
[01] Mon, 10 Dec 2012 10:34:07 (0022714) SSH session receive password of user testuser
[01] Mon, 10 Dec 2012 10:34:07 (0022714) Username and password unmatched, the authentication will start again later.
[01] Mon, 10 Dec 2012 10:34:12 (0022714) SSH session receive user name:testuser
[01] Mon, 10 Dec 2012 10:34:12 (0022714) SSH session receive password of user testuser
[01] Mon, 10 Dec 2012 10:34:12 (0022714) SSH authentication completed successfully. Client information:SSH-2.0-OpenSSH_5.3
[01] Mon, 10 Dec 2012 10:34:12 (0022714) The user testuser login successfully via SSH.
[07] Mon, 10 Dec 2012 10:34:12 (0022714) SSH_FXP_INIT: client SSH version 3
[08] Mon, 10 Dec 2012 10:34:12 (0022714) SSH_FXP_VERSION: server SSH version 3
[07] Mon, 10 Dec 2012 10:34:12 (0022714) SSH_FXP_REALPATH: path .
[08] Mon, 10 Dec 2012 10:34:12 (0022714) SSH_FXP_NAME: path .
[01] Mon, 10 Dec 2012 10:39:13 (0022714) handle_timeout close the session
[02] Mon, 10 Dec 2012 10:39:13 (0022714) Closed session,disconnected from ###.###.###.###


WFTP 4.1.1 , Linux 64bit
niqbert
 
posts 14
 
joined Mon Jul 11, 2011 1:06 pm

Re: Passwordless SSH (sftp) key

Postby FTP » Tue Dec 11, 2012 8:02 am

Hi,

It seems like the server not process the public key authentication. Please send the user's configure file to us:support@wftpserver.com. We will help you to check it.
FTP
Site Admin
 
posts 1200
 
joined Tue Sep 29, 2009 6:09 am


Return to Support

Who is online

Users browsing this forum: No registered users and 2 guests