LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (http://www.linuxquestions.org/questions/linux-networking-3/)
-   -   ssh Host Key (http://www.linuxquestions.org/questions/linux-networking-3/ssh-host-key-287358/)

ziox 02-07-2005 01:43 PM

ssh Host Key
 
Hi...
ssh was woking fine but i wanted to start from the beginning ...But i think that i got messed
with some files i deleted

$HOME/.ssh form all users home dir and
/etc/ssh_host_* then restarted the daemon so those files are new now in both of
the 2 PC_s I've ....always i get this message

The authenticity of host 'ooz (192.168.0.7)' can't be established.
RSA key fingerprint is 20:4b:d8:a1:90:2a:ad:df:e7:8a:63:ae:f3:a4:90:e3.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.

what should i do to let the both PC_s forget those keys.....then i start from the beginning...


reinstall sshd from the both machines...
thanks

david_ross 02-07-2005 02:07 PM

I think you will need to recreate your .ssh folder:
mkdir ~/.ssh
chmod 700 ~/.ssh

ziox 02-07-2005 02:30 PM

Quote:

Originally posted by david_ross
I think you will need to recreate your .ssh folder:
mkdir ~/.ssh
chmod 700 ~/.ssh


i did ...and still the same ...
even
#ssh on the same machine the same error



The authenticity of host 'ooz (192.168.0.7)' can't be established.
RSA key fingerprint is 20:4b:d8:a1:90:2a:ad:df:e7:8a:63:ae:f3:a4:90:e3.
Are you sure you want to continue connecting (yes/no)?
Host key verification failed.

david_ross 02-07-2005 02:32 PM

What are the permissions on the keys?
ls -la /etc/ssh

ziox 02-07-2005 02:43 PM

Quote:

Originally posted by david_ross
What are the permissions on the keys?
ls -la /etc/ssh

-rw------- 1 root root 88039 Feb 14 2003 moduli
-rw-r--r-- 1 root root 1167 Feb 14 2003 ssh_config
-rw------- 1 root root 2474 Feb 14 2003 sshd_config
-rw------- 1 root admin 672 Feb 7 21:01 ssh_host_dsa_key
-rw-r--r-- 1 root admin 590 Feb 7 21:01 ssh_host_dsa_key.pub
-rw------- 1 root admin 515 Feb 7 21:01 ssh_host_key
-rw-r--r-- 1 root admin 319 Feb 7 21:01 ssh_host_key.pub
-rw------- 1 root admin 887 Feb 7 21:01 ssh_host_rsa_key
-rw-r--r-- 1 root admin 210 Feb 7 21:01 ssh_host_rsa_key.pub

david_ross 02-07-2005 02:47 PM

I'm not sure about the admin user being the group - try:
chown root:root /etc/ssh/*

If that doesn't work then you may get mroe information by inceasing the verbosity:
ssh -vvv ip.of.ssh.server

ziox 02-07-2005 02:57 PM

ssh -vvv solved it
i did it on the both sides
thank you


All times are GMT -5. The time now is 04:41 AM.