I've got about a dozen servers that I log into via an authorised ssh key, and up until today it was working fine. Today, one of those servers refuses to accept my key - it accepts a root key and my passphrase, just not my key. Nothing has changed in the ssh configs, and the key is still in my authorized_keys
. Any idea why it's stopped working?
Asked
Active
Viewed 4,373 times
0

Andrew
- 8,002
- 3
- 36
- 44
1 Answers
2
.ssh directory chmod 700
?.ssh/authorized_keys chmod 600
?
owned by you?
If the server sshd_config wasn't changed and the other keys work, I would suspect something happened to the directory or permissions that contain your key.

Nakilon
- 128
- 1
- 1
- 8

karmawhore
- 3,865
- 18
- 9
-
.ssh is 0700, authorized_keys is 0600. Both owned by me. – Andrew Jul 01 '10 at 02:49
-
key matches? anything in the auth logs? – karmawhore Jul 01 '10 at 02:53
-
`Authentication refused: bad ownership or modes for directory /home/
`. Currently 0770. – Andrew Jul 01 '10 at 03:08 -
I believe the group writeable may be what caused it to decline. Try chmod 750 and ls -ald /home/username to make sure the uid/gid exist. – karmawhore Jul 01 '10 at 03:13
-
Aha! Fixed! Excellent. Group writable was it. – Andrew Jul 01 '10 at 03:17