Secure shell not authorization.

Initial Key Generation

1. Run ssh-keygen :
zyzgy:/home/dogbert> 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 passphrase:
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:
102433111168944114597374487887117441784173176539915
928847841801074617059136044181120279580454366928224
486390260026145462206850789104913347278777070506580
018853305456201065760545274525765400560717322378781
593735891537667076086201494935478117010986666777176
404809146568040040324385084912146975575625139603544
199861431 do
gbert@zyzgy
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.
dogbert@worldlet’s password:
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
No mail.
you are user dogbert
/dev/pts/4
worldlet:/worldlet/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,
http://acd.ucar.edu/%7Efredrick/mpark/ssh/rsa-unix.html