SSH via KEY quit working

PROBLEM: Could not ssh to server via key (or password, only enabled for testing).

RESOLUTION: After restarting the daemon, checking configs, copying the key again, etc..
I found a strange permissions issue with the .ssh directory

When I issued ls -la from the homedir, everything looks ok.


user@server:~ ls -la
--SNIP--
drwx------ 2 user group 4096 Oct 5 07:58 .ssh
--SNIP--

Then I cd into .ssh and issue ls -la. Note “..”
It’s drw-rw-rw- and that’s not right (no pun intended).


cd .ssh
user@server:~/.ssh ls -la
total 12
drwx------ 2 user group 4096 Oct 5 07:58 .
drw-rw-rw- 7 user group 4096 Oct 5 08:04 ..
-rw-r--r-- 1 user group 603 Oct 5 07:37 authorized_keys
-rw-r--r-- 1 user group 0 Oct 5 07:38 known_hosts

I fixed it by doing the following.


chmod 700 ..
user@server:~/.ssh ls -la
total 12
drwx------ 2 user group 4096 Oct 5 07:58 .
drwx------ 7 user group 4096 Oct 5 08:04 ..
-rw-r--r-- 1 user group 603 Oct 5 07:37 authorized_keys
-rw-r--r-- 1 user group 0 Oct 5 07:38 known_hosts