Problems with port forwarding on Suse Linux 9.0

Pekka Savola pekkas at netcore.fi
Mon Dec 1 23:19:02 EST 2003


On Mon, 1 Dec 2003, Darren Tucker wrote:
> [snip]
> > On the client system, I run (where "suse-server" is the IP address of my
> > SuSE server system to which I'm trying to connect)
> > 
> > client> /usr/bin/ssh -f -L 5599:localhost:25 suse-server sleep 100
> > client> telnet localhost 5599
> > Trying 127.0.0.1...
> > Connected to localhost.
> > Escape character is '^]'.
> > channel 2: open failed: connect failed: Connection refused
> > Connection closed by foreign host.
> [snip]
> > suse-server> telnet localhost 25
> > Trying ::1...
> > telnet: connect to address ::1: Connection refused
> 
> Try setting the forward to "-L 5599:127.0.0.1:25".  I suspect sshd is
> trying to connect to the IPv6 address of "localhost", which is refused,
> and sshd doesn't try the IPv4 address.

Obviously, 'ssh' should do a getaddrinfo lookup on the host to be 
forwarded, and loop though all the addresses until a working one is 
found.

That's what about every app which is supposed to be v4/v6-capable
should be doing.

-- 
Pekka Savola                 "You each name yourselves king, yet the
Netcore Oy                    kingdom bleeds."
Systems. Networks. Security. -- George R.R. Martin: A Clash of Kings




More information about the openssh-unix-dev mailing list