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.

“Avoid 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. 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.

Author: Pankaj Anupam

I am a Full Stack Web developer working in AngularJS, ReactJS, NodeJS, Javascript & PHP. I am using technologies like HTML5, CSS3, Sass, Bootstrap, D3, Grunt, Bower, CoffeeScript, MongoDB, Graph Database, Sql & Jade. I have hands-on experience of web & mobile optimized application development.

Leave a Reply

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