Skip to content

Instantly share code, notes, and snippets.

@n8io
Last active August 29, 2015 14:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save n8io/82a6ef76fb4a49c7a9a4 to your computer and use it in GitHub Desktop.
Save n8io/82a6ef76fb4a49c7a9a4 to your computer and use it in GitHub Desktop.
Remote bash setup
#!/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