port forwarding trouble
Peter Stuge
stuge-openssh-unix-dev at cdy.org
Wed Aug 3 09:13:30 EST 2005
On Tue, Aug 02, 2005 at 05:39:59PM +0100, Frederik Eaton wrote:
> > As Peter Stuge noted earlier, you can use HostKeyAlias to specify
> > the real name of the host you're connecting to over the forward.
>
> So, I could just write a wrapper that always passes "-o
> HostKeyAlias=host:port" to ssh to get around the bug?
That, or add the following to ~/.ssh/config or /etc/ssh/ssh_config
Host tunnelhost
HostKeyAlias real.host.name
HostName localhost
Port 2222
And then connect to it using:
ssh tunnelhost
Repeat for as many tunnelhosts as you want, just change Host,
HostKeyAlias and Port for each.
//Peter
More information about the openssh-unix-dev
mailing list