First of all, be physically logged on to your own computer. Make sure that no-one will see you typing stuff in, since we are going to type in passphrases and such. So get your pepperspray and fight all untrusted entities until you are home alone.
Now we are going to create our ssh keys, DSA keys to be exact. Log onto
your computer as the user that you are going to be using when you want
to access cvs.gentoo.org. Then issue
$ ssh-keygen -t dsa Generating public/private dsa key pair. Enter file in which to save the key (/home/temp/.ssh/id_dsa):(Press enter) Created directory '/home/temp/.ssh'. Enter passphrase (empty for no passphrase):(Enter your passphrase) Enter same passphrase again:(Enter your passphrase again) Your identification has been saved in /home/temp/.ssh/id_dsa. Your public key has been saved in /home/temp/.ssh/id_dsa.pub. The key fingerprint is: 85:35:81:a0:87:56:78:a2:da:53:6c:63:32:d1:34:48 temp@Niandra
Now wasn't that easy? Let's see what we have created:
# ls ~/.ssh id_dsa id_dsa.pub
You'll probably have more files than this, but the 2 files listed above are the ones that are really important.
The first file,
The second file,
$ cat ~/.ssh/id_dsa.pub >> ~/.ssh/authorized_keys
Every time you want to log on to a remote host using SSH public key
authentification, you will be asked to enter your passphrase. As much as
everybody likes typing, too much is sometimes too much. Luckily,
there is
First, install
# emerge keychain
Now have keychain load up your private ssh key when you log on to your
local box. To do so, add the following to
keychain ~/.ssh/id_dsa . .keychain/hostname -sh
Be sure to substitute