SSH Remember Passphrase
When i connect to remote server using SSH using private key, it ask for passphrase every time.
root@admin:~# ssh [email protected] Enter passphrase for key '/root/.ssh/id_rsa': root@admin:~#
I want it only ask once, then remember it.
To do this, you need to run
eval `ssh-agent -s` ssh-add
When you run “ssh-add” command, it ask for your passphrase. Now you will be able to use your SSH Key with out getting promoted for passphrase.
See ssh