LinuxQuestions.org
View the Most Wanted LQ Wiki articles.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices

Reply
 
Search this Thread
Old 02-07-2005, 01:43 PM   #1
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Rep: Reputation: 15
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
 
Old 02-07-2005, 02:07 PM   #2
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
I think you will need to recreate your .ssh folder:
mkdir ~/.ssh
chmod 700 ~/.ssh
 
Old 02-07-2005, 02:30 PM   #3
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
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.
 
Old 02-07-2005, 02:32 PM   #4
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
What are the permissions on the keys?
ls -la /etc/ssh
 
Old 02-07-2005, 02:43 PM   #5
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
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
 
Old 02-07-2005, 02:47 PM   #6
david_ross
Moderator
 
Registered: Mar 2003
Location: Scotland
Distribution: Slackware, RedHat, Debian
Posts: 12,047

Rep: Reputation: 64
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
 
Old 02-07-2005, 02:57 PM   #7
ziox
Member
 
Registered: Apr 2004
Distribution: RedHat, Fedora, Suse, Debian, Gentoo, Mandrake
Posts: 132

Original Poster
Rep: Reputation: 15
ssh -vvv solved it
i did it on the both sides
thank you
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
How to setup a host.deny and host.allow for SSH? explorer1979 Linux - Security 2 01-31-2005 05:28 PM
to 2.6.10 from 2.4.26 | ssh client | Host key verification failed kaN5300 Slackware 6 01-05-2005 10:04 PM
sshd - host key jamna17 *BSD 3 06-16-2004 08:20 AM
SSH rejects my host key for version 2 only. Travis86 Linux - Networking 19 08-08-2003 03:48 AM
sshd won't read my host key Travis86 Linux - Networking 0 07-30-2003 10:48 AM


All times are GMT -5. The time now is 07:58 PM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration