Don't you get mad when you have to enter your passphrase 3 times for every SVN-commit ? Well I do.
Go avoid it !!!
(If you don't know this already) Pass-phrase need be entered just once for every X-login.
$ env | grep SSHThis command gives your ssh agent that is running.
SSH_AUTH_SOCK=/tmp/ssh-THqzVF9262/agent.9262Generate the private/public key pair with
$ ssh-keygen Generating public/private rsa key pair.
Enter file in which to save the key (/home/user/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/user/.ssh/id_rsa.
Your public key has been saved in /home/user/.ssh/id_rsa.pub.
The key fingerprint is:
XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX:XX user@host
(select
no passphrase to login without a passphrase)
Now,
id_rsa holds your private key and
id_rsa.pub has the public which has to be updated in the server.
(Server) Edit the
~/.ssh/authorized_keys to include the public key.
On the client side, you can load your keys into the agent with ssh-add
$ ssh-addThat will load the standard keys into the agent:
~/.ssh/identity (SSH1, RSA)
~/.ssh/id_dsa (SSH2, DSA)
~/.ssh/id_rsa (SSH2, RSA)
Now, you need not supply pass-phrase for any ssh client you start from your X session. If you don't have a passphrase set you don't need to supply one.
To Check the loaded keys use
$ ssh-add -l