Link to home
Start Free TrialLog in
Avatar of silentguy
silentguy

asked on

Authentication problem with OpenSSH and SSH2-RSA Key Pair

Can anyone help me with this issue? Basically, I have a client trying to connect to my SCP server via ssh2-rsa key pair authentication. I've tested the connect from my desktop to the server, no problem, with PuTTy. However the client generated their keypair using OpenSSH. I've installed the key correct, and it looks like things are setup right on their end, but authentication process is still prompting the client for a password even though it recognizes and does not indicate any issue with the private key. Here's the log, I replaced my company's name with [host] and the clients name with [client].
---
Executing: program /usr/bin/ssh host files.[host].net, user [client]_scp, command scp -v -t upload/
OpenSSH_3.9p1, OpenSSL 0.9.7a Feb 19 2003
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to files.[host].net [0.0.0.0] port 22.
debug1: Connection established.
debug1: identity file [host] type -1
debug1: Remote protocol version 2.0, remote software version OpenSSH_3.9p1
debug1: match: OpenSSH_3.9p1 pat OpenSSH*
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_3.9p1
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 'files.[host].net' is known and matches the RSA host key.
debug1: Found key in /home/[client]/.ssh/known_hosts:12
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: Trying private key: [host]
debug1: read PEM private key done: type RSA
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
[client]_scp@files.[host].net's password:
---
Thanks.
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Are the permissions on the client side correct? (600 for the private key)
Not only key has to be 0600, but also $HOME must not be writable by anyone but owner, and $HOME/.ssh should be 0700 as well.
Avatar of silentguy
silentguy

ASKER

Thanks for tips guys. The client has verified that the permissions are set correctly on their side and I've verified the correct permissions are set on my end. Unfortunately, it's still a no go. What's strange is that the log *seems* to indicate that there is no issue with the key pair itself. It just keeps asking for the password. Is there something specific that needs to be configured on the OpenSSH client side?
ASKER CERTIFIED SOLUTION
Avatar of woolmilkporc
woolmilkporc
Flag of Germany image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
Another thing:
I've seen more than once that people simply copy and paste keys into their keyring files, not recognizing the eventually inserted LF.
Just one more place to look at.
And, it's not only file permissions, but also file ownership ...
SOLUTION
Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial