This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
chown -R $USER ~/.ssh | |
chmod 700 ~/.ssh | |
chmod 600 ~/.ssh/authorized_keys | |
chmod 600 ~/.ssh/config | |
# This unnecessarily closes permissions on .pub keys too, but whatever | |
chmod 600 ~/.ssh/id_* |