After adding new ssh key to .ssh/authorized_hosts I can no longer ssh to the machine without entering password.What is even more funny is that the .ssh directory is suddenly inaccessible when I'm logged in via ssh (no direct console access):pi@prodpi ~ $ ls -ladrw-------   2 pi   pi      4096 Mar 13  2015 .sshpi@prodpi ~ $ cd .ssh/-bash: cd: .ssh/: Permission deniedpi@prodpi ~ $ ls .ssh/ls: cannot access .ssh/authorized_keys: Permission deniedls: cannot access .ssh/known_hosts: Permission deniedauthorized_keys  known_hostspi@prodpi ~ $ sudo ls .ssh/authorized_keys  known_hostsThe user is pi. What- if not directory permissions- could prevent me from accessing the folder as owner and potentially screw ssh login?
Cannot cd to .ssh
ssh;cd command;permission denied
To enter a directory you have to set executable permission on it.This should do it:chmod u+x .ssh/