Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I have an RSA public/private keypair on my laptop; on a remote machine I have two accounts A and B which each have the public key in /home/{A,B}/.ssh/authorized_keys. With the private key loaded in ssh-agent on my laptop, I can ssh to A@remote without a password, but B@remote prompts for a password.

I have no ~/.ssh/ssh_config on my laptop. User A has no password yet; B does. Switching /etc/ssh/ssdh_config to "PasswordAuthentication no" just results in "ssh publickey denied" for user B.

The server is on Ubuntu 9.10 Karmic, with OpenSSH_5.1p1 Debian-6ubuntu2, OpenSSL 0.9.8g 19 Oct 2007. Laptop is Ubuntu 10.04 with OpenSSH_5.3p1.

share|improve this question
1  
What are the permissions and ownership of the authorized_keys files, and of their parent directories? Does sudo sshd -rddp 222 on the remote machine show anything? (Connect to port 222.) –  grawity Feb 2 '11 at 20:38
add comment

1 Answer

It turned out the broken user's $HOME/.ssh folder had the "write" permission enabled for group. chmod go-rwx $HOME/.ssh fixed the issue.

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.