You are not logged in.

#1 2011-07-10 04:51:57

synthead
Member
Registered: 2006-05-09
Posts: 1,337

[solved] sshd won't accept my keys, now what?

On a server, I can log in with a password, but not with an ssh key.  The user's home directory is located at /srv/git/studio-air, and ~/.ssh/authorized keys are both set to 400 permissions.  Nothing shows up in auth.log about incorrect permissions or anything.  Keys work for the other users located in /home.  What now?

Fixed: needed to set it to 500 permissions

Last edited by synthead (2011-07-10 05:07:09)

Offline

#2 2011-07-10 05:01:09

jasonwryan
Anarchist
From: .nz
Registered: 2009-05-09
Posts: 30,424
Website

Re: [solved] sshd won't accept my keys, now what?

SSH is extremely picky about permissions on ~/.ssh/authorized_keys - try setting it to 600


Arch + dwm   •   Mercurial repos  •   Surfraw

Registered Linux User #482438

Offline

Board footer

Powered by FluxBB