Created
September 25, 2017 16:37
-
-
Save diogoca/f49fd28d081c3ba9c98ff4418bca8263 to your computer and use it in GitHub Desktop.
SSH chmod permissions
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkdir -p /home/user/.ssh | |
ssh-keygen -t rsa | |
touch /home/user/.ssh/authorized_keys | |
touch /home/user/.ssh/known_hosts | |
chown -R user:user /home/user/.ssh | |
chmod 700 /home/user/.ssh | |
chmod 600 /home/user/.ssh/id* | |
chmod 644 /home/user/.ssh/id*.pub | |
chmod 644 /home/user/.ssh/authorized_keys | |
chmod 644 /home/user/.ssh/known_hosts |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment