On Feb 14, 2006, at 1:03 PM, Taylor Glenn wrote:
I'm having a bit of trouble getting public keys to work for users other than root. I'm running the latest dropbear (0.47).
I take an authorized_keys file that works for root, copy it to the user's .ssh directory, chown it to the user and set the same relative permissions (700 for ~, ~/.ssh, 600 for ~/.ssh/authorized_keys), and then try to log in as the user--only to get a password prompt.
Is there something obvious that I am missing (sorry I was a bit sparse on the details, let me know if you want more)? Can anyone else replicate this behavior?
openssh is very picky about permissions on .ssh and .ssh/* -- dropbear probably is too. I'd suggest checking /var/log/message after a login failure and see what it says. Also try ssh'ing to the gumstix using the -v flag to the ssh client -- that'll dump more information about where the login is failing, and might be helpful.