SSH Key based Login - Correct Permission
The home directory of a user should be writable only by that user. The commands to apply correct permission is below.
1
2
3
4
chmod go-w /home/server-user
chmod 700 /home/server-user/.ssh
chmod 600 /home/server-user/.ssh/authorized_keys
This post is licensed under CC BY 4.0 by the author.