Christoph Höger wrote:
Hi,
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!
Is there some way to tell ssh to use a tunnel directly for a connection?
You might just set your VM up to provide a unique static IP for the VM
and stop trying to go around. Other tricks include doing ssh to the host
and executing another ssh, putting svn on a port on the host to open a
desktop, using ssh port forwarding to get to VPN port on the VM, etc.
None of these works as well as a unique IP for the VM.
Yes, that's only my opinion because I do it that way, and I run my own
DHCP rather than assigning IP from inside the machine. YMMV.
--
Bill Davidsen <davidsen(a)tmr.com>
"We have more to fear from the bungling of the incompetent than from
the machinations of the wicked." - from Slashdot