Being prompted for password on every Git operation can get tiresome in the long run.
$ ssh-add ~/.ssh/id_rsa
Enter your passphrase and you should be good to go. If you want to automate even more, check out ssh-agent
:
Add the following snippet to your .bash_profile
.
if [ -z "$SSH_AUTH_SOCK" ] ; then
eval `ssh-agent -s`
ssh-add
fi
These are general ssh
tricks, so they can be used in other cases where ssh
is put to use.