Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- cp -a /mnt/Files/dotfiles/.{gnupg,ssh} ~
- chown -R $(whoami) ~/.gnupg/
- find ~/.gnupg -type f -exec chmod 600 {} \;
- find ~/.gnupg -type d -exec chmod 700 {} \;
- chmod 700 ~/.ssh
- chmod 644 ~/.ssh/authorized_keys
- chmod 644 ~/.ssh/known_hosts
- chmod 644 ~/.ssh/config
- chmod 600 ~/.ssh/id_rsa
- chmod 644 ~/.ssh/id_rsa.pub
- eval "$(ssh-agent -s)"
- ssh-add ~/.ssh/id_rsa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement