Last active
August 29, 2015 14:21
-
-
Save n8io/82a6ef76fb4a49c7a9a4 to your computer and use it in GitHub Desktop.
Remote bash setup
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
#!/bin/bash | |
if [ -z "$SSH_AUTH_SOCK" ] ; then | |
eval `ssh-agent -s` | |
fi | |
echo Loading ssh keys... | |
for file in $(find ~/.ssh/id_rsa* ! -name '*.*'); | |
do | |
ssh-add $file | |
done | |
echo ...done. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment