myhome/.local/bin/ssh-permissions

15 lines
362 B
Plaintext
Executable File

chmod 700 ~/.ssh
chmod 644 ~/.ssh/authorized_keys
chmod 644 ~/.ssh/known_hosts
chmod 644 ~/.ssh/config
# chmod 400 ~/.ssh/id_rsa
# chmod 400 ~/.ssh/id_rsa.pub
# chmod 400 ~/.ssh/*/id_rsa
# chmod 400 ~/.ssh/*/id_rsa.pub
chmod 600 ~/.ssh/*/id_rsa
chmod 600 ~/.ssh/*/id_rsa.pub
chmod 600 ~/.ssh/authorized_keys
chmod 600 ~/.ssh/known_hosts
chmod 600 ~/.ssh/config