Currently every time I start up terminal I get prompted the following:
Last login: Mon Nov 28 21:32:16 on ttys000
Agent pid 2733
Enter passphrase for /Users/my_name/.ssh/id_rsa:
Could you please guide me on how I can avoid having to enter a passphrase everytime?
You could add your passphrase to your keychain:
ssh-add -K ~/.ssh/id_rsa
Or you can add it in your ~/.ssh/config
:
Host *
UseKeychain yes
You probably wrote to your ~/.bashrc
lines
`eval ssh-agent`
ssh-add
or something like this. This means that it will start a new ssh-agent
for every shell you open, which is certainly not what you want. The agent should start when you open your Xsession (~/.xsession
), or you should check if the agent is running before running a new one:
[ -z $SSH_AUTH_SOCK ] && `eval ssh-agent` && ssh-add
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With