Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
ssh Tunnels
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
raptor
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 171

PostPosted: Thu Jan 25, 2007 9:46 pm    Post subject: ssh Tunnels Reply with quote

hi,

When I try to build a tunnel (from a script) I'm getting something like this :

@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@ 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
xx:xx:Xx:xx:xx:Xx...
Please contact your system administrator.
Add correct host key in /..../.ssh/known_hosts to get rid of this message.
Offending key in /....../.ssh/known_hosts:13
RSA host key for localhost has changed and you have requested strict checking.
Host key verification failed.

I use "ssh ... -o NoHostAuthenticationForLocalhost=no ....", but even with this once I make the connection...
the ssh adds localhost-line into known_hosts and the next time I try to make the tunnel I have to go and
manualy delete this line...

So my question is ? Is there a way to tell to ssh not to add lines into known_hosts file ?
Back to top
View user's profile Send private message
hede
Apprentice
Apprentice


Joined: 07 Nov 2003
Posts: 160
Location: Siegen/Germany

PostPosted: Fri Jan 26, 2007 6:54 am    Post subject: Reply with quote

Its "NoHostAuthenticationForLocalhost=yes" or maybe "HostAuthenticationForLocalhost=no" (don't know if it works)

no+no means "yes, do HostAuthenticationForLocalhost" ;-) (double negation)
_________________
Der süsse Pinguin ist mir lieber als die kleinen weichen, die einem nur kaputte Fenster verkaufen
Back to top
View user's profile Send private message
think4urs11
Bodhisattva
Bodhisattva


Joined: 25 Jun 2003
Posts: 6659
Location: above the cloud

PostPosted: Fri Jan 26, 2007 8:28 am    Post subject: Reply with quote

StrictHostKeyChecking no
_________________
Nothing is secure / Security is always a trade-off with usability / Do not assume anything / Trust no-one, nothing / Paranoia is your friend / Think for yourself
Back to top
View user's profile Send private message
raptor
Apprentice
Apprentice


Joined: 20 Sep 2002
Posts: 171

PostPosted: Fri Jan 26, 2007 9:43 pm    Post subject: thanx Reply with quote

So finally the correct one is :
-o NoHostAuthenticationForLocalhost=yes -o StrictHostKeyChecking=no

first one to not bother for localhost and second one to not bother for known_hosts.(i.e doesn't matter even if it writes to this file)
I tried before NoHostAuthenticationForLocalhost, StrictHostKeyChecking and CheckHostIP, but probabaly in wrong combination ;|

thanx again
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