unix client: key check failed

Report bugs or issues with Core FTP Server here
Locked
flip
Posts: 1
Joined: Tue Sep 21, 2010 12:47 pm

unix client: key check failed

Post by flip »

We have to sftp from an unix client to a Coreftp server.
When connecting we are getting the error:
Received disconnect from xxx.xxx.xxx.xxx: 2: key check failed
Connection closed

The strange thing is that, when I remove the public key on the client side, it's asking for a password and then we don't get the error.
We have this issue on both Aix and on Solaris clients.

On the CoreFTP server, the "Allow key authentication" is enabled.

Any help would be appreciated.

sftp debug output:


debug1: Connecting to xxx.xxxx.xx [xxx.xxx.xxx.xxx] port 22.
debug1: Connection established.
debug1: identity file /home/user/.ssh/id_rsa type -1
debug1: identity file /home/user/.ssh/id_dsa type 2
debug1: Remote protocol version 2.0, remote software version CoreFTP-0.1.2
debug1: no match: CoreFTP-0.1.2
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_4.5
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: sending SSH2_MSG_KEXDH_INIT
debug1: expecting SSH2_MSG_KEXDH_REPLY
debug1: Host 'xxx.xxxx.xx' is known and matches the RSA host key.
debug1: Found key in /home/user/.ssh/known_hosts:4
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: password,publickey
debug1: Next authentication method: publickey
debug1: Hitting here in public key auth ssh clienti&&&&&&&&&&&&&&&
debug1: Trying private key: /home/user/.ssh/id_rsa
debug1: Offering public key: /home/user/.ssh/id_dsa
debug1: Server accepts key: pkalg ssh-dss blen 435
debug1: read PEM private key done: type DSA
Received disconnect from xxx.xxx.xxx.xxx: 2: key check failed
Connection closed
sennidurai
Posts: 1
Joined: Mon Oct 11, 2010 12:32 pm

advice please

Post by sennidurai »

i am also having the above issue, please any one advice.
meymia
Posts: 1
Joined: Thu Jun 30, 2011 8:42 am

Post by meymia »

Exact same issue - please advise if you found a solution.

Client has new public fingerprint. Suspect the client key needs to be updated but where is the public key file location?

Thanks
Locked