How to avoid being asked passphrase each time using ssh

Each time when you are trying to access remote server, pull push to git, your are being asked “Enter passphrase for key” because passphrase is not store in session.

To avoid being asked “Enter passphrase for key”

you need to use a ssh agent and add passphrase in it by running :-

$ ssh-add

You will be again asked for passphrase and this time passphrase will save in session. and won’t be asked again.

If you will get error message Could not open a connection to your authentication agent Check Out Your URL. that means ssh agent isn’t already running. In that situation, you can start one by running –

$ eval $(ssh-agent)

Then repeat step one $ ssh-add command.


Leave a Reply

Your email address will not be published. Required fields are marked *