Re: SSH tunnel for ssh traffic

Christoph Höger wrote:

I need to ssh to some remote VM that sit in a private LAN. For any other
service (e.g. RDP) I'd use ssh tunneling just normal.
But what do I do for ssh traffic? Since ssh is not host agnostic, it
will always complain about localhost having a different RSA key.
I just do not want to edit the known_hosts every time I need to connecto
to a new machine!

I have a machine which changes RSA key every boot (boot from read only USB key).
The messages you are trying to avoid go away withi this in ssh_config:

Host myhostname
StrictHostKeyChecking no

you should have localhost instead of myhostname.

(are you really worried about someone hijacking localhost?) :-)

Roberto Ragusa mail at
users mailing list
To unsubscribe or change subscription options:

Relevant Pages

  • Re: rsync with public/private keys/no passwords
    ... the rsa key for someuser on the local machine. ... the ssh to work without prompting for a password. ... I think your rsync might look something like this: ...
  • Re: SSH and XP
    ... >>>refuses any connection from the localhost ... >>>through SSH, ... Windows XP will allow ...
  • Re: problem with X forwarding
    ... > Make sure ssh was able to setup X11 tunnel. ... > Connected to localhost. ... Connection closed. ...
  • Re: Optimale Nutzung von Benutzerrechten; evtl. ACL?
    ... ssh braucht natürlich eine richtige Shell a la Bash. ... Connection to localhost closed. ... So - also ich brauche eine "richtige Shell" ...
  • Re: My PIX broke, well.. kinda
    ... Fail to establish SSH session because PIX RSA host key ... Or ask somebody to install a modem and connect it to the Console port. ... I'm not sure why your RSA key is broken - one possibility is that your ... config and RSA key was not saved. ...