multiple keys in .ssh/known_hosts

This is a discussion on multiple keys in .ssh/known_hosts within the Linux Networking forums, part of the Linux Forums category; I have an ssh tunnel from my home gateway to my machine at work. ie If I ssh to a ...


Go Back   Usenet Forums > Linux Forums > Linux Networking

FAQ Members List Calendar Search Today's Posts Mark Forums Read
  #1 (permalink)  
Old 07-08-2004
SS Tsay
 
Posts: n/a
Default multiple keys in .ssh/known_hosts

I have an ssh tunnel from my home gateway to my machine at work. ie If
I ssh to a certain port on my home gateway from my home desktop I get my
work machine's ssh server. I must do this because my work machine has a
private address behind a firewall. The problem is that the
..ssh/known_hosts file on my home desktop has the public key for my
gateway in it and when I connect to the ssh tunnel my work machine's ssh
key gets sent over and my desktop tries to associate that key with my
gateway in the known_hosts file. This throws up an error and I have to
manually delete the key from the known_hosts file. Does anyone know a
way around this?

The tunnel command I use from my work machine is

ssh -f -C -Rport#:localhost:22 mygateway.com sleep 72h

Thanks,
TS
Reply With Quote
Reply
Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

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 Off
[IMG] code is Off
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT +1. The time now is 05:35 PM.


Powered by vBulletin® Version 3.7.3
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO 3.0.0