Click to See Complete Forum and Search --> : cant ssh to myself
WilliamWallace
06-14-2001, 12:35 PM
when i try to ssh to my own box using:
ssh -l loginname myip
i get this:
the authenticity of host "xxx.xxx.xxx.xxx." cant be established.
RSA fingerprint is: xxxxxxxxxxxxxxxxxxxxx
are you sure you want to continue connecting(yes/no)?
when setting up ssh i did ssh-keygen -b 1024 as root and as me....what am i doing wrong?
Craig McPherson
06-14-2001, 02:23 PM
This is complex...
Type "yes", press enter.
The first time you connect to a machine using SSH, the SSH client has to basically ask you "You've never connected to this machine before, so there's no way I can be sure it's the machine you think it is. Are you absolutely sure you're connecting to the right machine?"
When you say "yes", it stores the remote machine's public key in your known hosts file. Each user has their own known hosts file so that user's can't poison each others' SSH connections.
You will always have to type "yes" to the first time you connect to a machine via SSH, unless you've already obtained its public key via SSH and copied it into your known hosts file. This is for security. This is how SSH works. This is so that one machine can't pretend to be another machine and intercept communication that doesn't belong to it.
Craig McPherson
06-14-2001, 02:24 PM
Also, you have to type "yes", not just "y". That one's kinda tricky.
WilliamWallace
06-14-2001, 07:25 PM
thanks for the sarcasim....and the tip.... :rolleyes:
Craig McPherson
06-14-2001, 08:14 PM
As always, you are more than welcome. For both.