SSH keys fail for one user

Posted by Eli on Server Fault See other posts from Server Fault or by Eli
Published on 2011-01-10T18:52:05Z Indexed on 2011/01/10 18:54 UTC
Read the original article Hit count: 440

Filed under:
|
|
|

I just set up a new Debian server. I disabled root SSH and password auth, so you've gotta use a key file.

For my primary user, everything works exactly as expected. I used ssh-keygen -t dsa and got myself a public and private key. Put one in authorized keys, put the other in a pem file locally.

I wanted to create a user that I can deploy things with, so I did basically the same process. I addusered it, made a .ssh folder, ran ssh-keygen -t dsa (I also tried RSA), put the keys in their appropriate locations.

No luck. I'm getting a Permission denied (publickey) error. When I use the exact same keys as the account that works, same error. When I enable password authentication, I can log in via SSH with the password.

How do I debug this?

© Server Fault or respective owner

Related posts about ssh

Related posts about debian