Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
SSH Problem - Can't find /root/.ssh/known_hosts
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
kevmille
Guru
Guru


Joined: 26 Jul 2003
Posts: 311
Location: Ho Chi Minh City (Saigon), Vietnam

PostPosted: Mon Mar 22, 2004 2:17 am    Post subject: SSH Problem - Can't find /root/.ssh/known_hosts Reply with quote

I am not sure what the problem is but when I try to get into my account through SSH, I get the following message:

Code:
bash-2.05b# ssh -l username domain.com
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
70:25:21:14:0c:3f:e5:37:7d:3c:70:23:0b:d9:3b:9e.
Please contact your system administrator.
Add correct host key in /root/.ssh/known_hosts to get rid of this message.
Offending key in /root/.ssh/known_hosts:3
RSA host key for domain.com has changed and you have requested strict checking.
Host key verification failed.


I have no problems using SSH with my other accounts, just this one. I was told to delete line three from /root/.ssh/known_hosts:3 but that particular file does not seem to exist.

What should I do?
_________________
My Company: Hakata Consulting
Back to top
View user's profile Send private message
nofx911
n00b
n00b


Joined: 21 Jan 2004
Posts: 30
Location: Milwaukee, WI

PostPosted: Mon Mar 22, 2004 4:43 am    Post subject: Reply with quote

From the account (make sure you use su -l or login directly into that user) on the remote box that you trying to ssh from try typing:

nano $HOME/.ssh/known_hosts

Then remove the lines that pertain to domain.com. Make sure that there is a good reason as to why the host key has changed or you could have someone who is trying to perfom an attack on your connection.
Back to top
View user's profile Send private message
kevmille
Guru
Guru


Joined: 26 Jul 2003
Posts: 311
Location: Ho Chi Minh City (Saigon), Vietnam

PostPosted: Mon Mar 22, 2004 5:03 am    Post subject: Reply with quote

Thanks alot. That solved the problem :-)
_________________
My Company: Hakata Consulting
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum