| |
Howto Configure ssh Public Key Exchange on Linux
From client end (initiating side)
$ cd
$ ssh-keygen -t rsa -b 2048
Generating public/private rsa key pair.
Enter file in which to save the key (~/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in ~/.ssh/id_rsa.
Your public key has been saved in ~/.ssh/id_rsa.pub.
The key fingerprint is:
e0:d5:11:22:33:44:55:66:77:88:99:00:aa:bb:f3:26 me@server2
$ cd .ssh
$ scp id_rsa.pub server2:.ssh/user@server1.id_rsa.pub
$ ssh server2
[...new host key, blah, blah...]
$ cd .ssh
$ cat user@server1.id_rsa.pub >>authorized_keys
# chmod 0600 authorized_keys #required!!
$ ^D
$# now back on server1
$ ssh server2
[...hopefully it worked...]
date: 03/17/2006
|