Skip to content

Latest commit

 

History

History
25 lines (17 loc) · 778 Bytes

avoid_being_prompted_for_password.md

File metadata and controls

25 lines (17 loc) · 778 Bytes

Avoid being prompted for password

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.

References