Advertisement
Guest User

Untitled

a guest
Oct 16th, 2019
89
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.36 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3. cp -a /mnt/Files/dotfiles/.{gnupg,ssh} ~
  4.  
  5. chown -R $(whoami) ~/.gnupg/
  6. find ~/.gnupg -type f -exec chmod 600 {} \;
  7. find ~/.gnupg -type d -exec chmod 700 {} \;
  8.  
  9. chmod 700 ~/.ssh
  10. chmod 644 ~/.ssh/authorized_keys
  11. chmod 644 ~/.ssh/known_hosts
  12. chmod 644 ~/.ssh/config
  13. chmod 600 ~/.ssh/id_rsa
  14. chmod 644 ~/.ssh/id_rsa.pub
  15.  
  16. eval "$(ssh-agent -s)"
  17. ssh-add ~/.ssh/id_rsa
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement