“Enter Passphrase for key ‘/.ssh/id_rsa'” – Stop This Prompt To Appear Repeatedly

Love development but irritated after entering the ssh prompt again and again? Git commands – pull, push, BLT Commands – ‘blt sync:files’, ‘blt sync:db’ all asking the same question? Sometimes you want to fetch a cup of coffee while ‘blt sync:files’ completes but can’t leave because you are not sure when the next prompt for passphrase appears again?

Or you start the db sync and start working on something else and return back to console only to find that you are too late to enter the passphrase?

Enter Passphrase for key '/.ssh/id_rsa'

Then here’s the simplest solution.

Before doing anything add ssh key passphrase for once and for all.
Start the ssh-agent in the background.

eval "$(ssh-agent -s)"

eval ssh-agent

 

 

then run:

ssh-add

ssh-add

 

 

This will stop the prompts for passphrase repeatedly.

What does it do?

This adds SSH private key to the ssh-agent and stores your passphrase in the keychain of your MAC OS.

Subscribe
Notify of
guest
0 Comments
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
0
Would love your thoughts, please comment.x
()
x