Not only is typing your passphrase once convenient, you can make your password very complicated and only ever type an easy to remember passphrase to access all your accounts.
ssh-agent /bin/ksh
ssh-add $HOME/private_key.rsa
/bin/ksh
by your favorite shell). Any command issued from then on that uses ssh
to interact with a server that hosts your public key (e.g. ssh, sshfs, rsync
) will not require a password e.g.
home_pc$ ssh-agent /bin/ksh
home_pc$ ssh-add $HOME/public_key.rsa
Enter passphrase for /home/user/public_key.rsa:
Identity added: /home/user/public_key.rsa (/home/user/public_key.rsa)
home_pc$ ssh miku.freeshell.org
miku$
ssh-add $HOME/private_key.rsa