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

The following steps prevent users from typing passphrases:

  1. Start ssh-agent
    $ eval `ssh-agent -s`
    
  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