[Git] How to Avoid Enter passphrase for key

less than 1 minute read

While using git, it is annoying to type password or passphrase when there are frequent commits/pushes.

Following steps avoids users from typing passphrase:

Step 1. Start ssh-agent

$ eval `ssh-agent -s`

Step 2. Add your private key using ssh-add

$ ssh-add ~/.ssh/id_rsa
Enter passphrase for /home/user/.ssh/id_rsa_key:
Identity added: /home/user/.ssh/id_rsa_key
(/home/user/.ssh/id_rsa_key)

Leave a Comment