Skip to content

Instantly share code, notes, and snippets.

@kurtis318
Created August 23, 2019 19:12
Show Gist options
  • Save kurtis318/13510744ecdd783ed3c771caeee0c04e to your computer and use it in GitHub Desktop.
Save kurtis318/13510744ecdd783ed3c771caeee0c04e to your computer and use it in GitHub Desktop.
ssh public key trouble shooting

Issue:

ssh public key (password-less) is not working

Solution:

There are a number if reasons that is this may not be working. Most solutions have to do with file or directory permissions.

Directory permissions

The /home directory where the .ssh directory is located must have permission 700. The remote host I was ssh'ing to had a permission of 775 on the users home directory (/home/kurtis). Changing the permisson of the directory (/home/kurtis) to 700 fixed the issu.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment