Initial Key Generation
1. Run ssh-keygen :
Initializing random number generator…
Generating p: .++ (distance 8 )
Generating q: .++ (distance 8 )
Computing the keys…
Key generation complete.
Enter file in which to save the key (/home/dogbert/.ssh/identity):
2. Press the “Enter” or “Return” key
3. For the next 2 prompts, enter the passphrase you want to use.
(for passwordless authentication, press the “Enter” or “Return” key)
Enter the same passphrase again:
Your identification has been saved in /home/dogbert/.ssh/identity.
4. Now you get your public key to copy to the server or servers.
Your public key is:
Your public key has been saved in /home/dogbert/.ssh/identity.pub
Logging on and copying the public key to the server
1. Logon to the remote host
zyzgy:/home/dogbert> ssh worldlet
Host key not found from the list of known hosts.
Are you sure you want to continue connecting (yes/no)? yes
Host ‘worldlet’ added to the list of known hosts.
Last login: Thu Mar 30 12:08:52 2000 from world.domination.org
(worldlet) Slackware Linux, Installed Tue Mar 21 12:58:45 MST 2000
you are user dogbert
2. Cut and paste the key from the original host into the file ~/.ssh/authorized_keys
worldlet:/worldlet/dogbert> vi .ssh/authorized_keys
Once you’ve copied the key, you can logoff and relogon to test the key.
The output should look like a normal ssh session except without a form of
dogbert@worldlet’s password: prompt.
If you entered a passphrase when generating the RSA key you will get a prompt similar to the one below :
Enter passphrase for RSA key ‘dogbert@zyzgy’:
Thank you so much,