summaryrefslogtreecommitdiff
path: root/dotfiles/system/.ssh/set_perms
blob: 9927ebd46054eceddaea31898ef82b77ed1da5a0 (plain)
1
2
3
4
5
6
7
#!/bin/sh
# sets permissions for ssh folders and files 

cd "$HOME"
chmod 700 "$HOME"/.ssh
chmod 600 "$HOME"/.ssh/*
chmod 644 -f  "$HOME"/.ssh/*.pub  "$HOME"/.ssh/authorized_keys  "$HOME"/.ssh/known_hosts  "$HOME"/.ssh/config