“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)"
then run:
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.
Debdatta has more than 13 years in IT induustry and software engineering. Currently 6 years in data science, and machine learning. She holds a Master of Computer Applications degree and Executive Post Graduate Program Degree in Data Science. She is passionate about research, data-driven decisions, and technology’s role in business growth.