SSH Key stopped working

Q: I used to be able to ssh in using my ssh key but it's no longer working. Can you tell me how to fix it?

A: Check the permissions on your .ssh folder. It should look like:

[email protected]:~$ ls -ld ~/.ssh
drwx------ 2 goldy goldy 194 Aug 30 13:34 .ssh

The first column should be “drwx------”. If you see letters in place of the 6 dashes, you can fix it by using the following command:

[email protected]:~$ chmod 0700 ~/.ssh
[email protected]:~$ ls -ld ~/.ssh
drwx------ 2 goldy goldy 194 Aug 30 13:34 .ssh