Problems with port forwarding on Suse Linux 9.0

Darren Tucker dtucker at
Mon Dec 1 11:35:21 EST 2003

Bob Fischer wrote:
> 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
> Connected to localhost.
> Escape character is '^]'.
> channel 2: open failed: connect failed: Connection refused
> Connection closed by foreign host.
> suse-server> telnet localhost 25
> Trying ::1...
> telnet: connect to address ::1: Connection refused

Try setting the forward to "-L 5599:".  I suspect sshd is
trying to connect to the IPv6 address of "localhost", which is refused,
and sshd doesn't try the IPv4 address.

Darren Tucker (dtucker at
GPG key 8FF4FA69 / D9A3 86E9 7EEE AF4B B2D4  37C9 C982 80C7 8FF4 FA69
    Good judgement comes with experience. Unfortunately, the experience
usually comes from bad judgement.

More information about the openssh-unix-dev mailing list