problem with port forwarding

From: Georg D. (georg_at_nospam)
Date: 12/02/03


Date: Tue, 02 Dec 2003 16:10:15 GMT

hi there,

I have following problem with ssh port forwarding:

- ssh and sftp sessions are functional

- it is "SSH Secure Shell 3.2.9" to "OpenSSH_3.4p1" on SuSe 8.1

- port forwarding can be defined and the client listens to
the specified port

- when a connection is requested, a channel is opened and the daemon
tries to establish connection on the server side.

- the server sees "connection refused" (?), and closes the channel

- if I try connection to the same local port on the server withing
the same ssh session with telnet - it works

- it is unclear to me why sshd would not be able to establish the
connection.

- sshd in debug-mode gives following output:

-----8<-----8<-----8<-----8<-----8<-----

21822: debug1: server_request_direct_tcpip: originator 127.0.0.1
 port 1403, target localhost port 3306
21822: debug1: fd 11 setting TCP_NODELAY
21822: debug2: fd 11 is O_NONBLOCK
21822: debug2: fd 11 is O_NONBLOCK
21822: debug1: channel 2: new [direct-tcpip]
21822: debug1: server_input_channel_open: confirm direct-tcpip
21822: debug1: channel 2: not connected: Connection refused
21822: debug1: channel 2: zombie
21822: debug1: channel 2: garbage collecting
21822: debug1: channel_free: channel 2: direct-tcpip, nchannels 3

-----8<-----8<-----8<-----8<-----8<-----

telnet (on the client side, using port forwarding):

~> telnet localhost 3306
Trying 127.0.0.1...
Connected to silver.
Escape character is '^]'.
Connection closed by foreign host.

-----8<-----8<-----8<-----8<-----8<-----

so, "connection refused" it is :-/
as described above, telnet _on the server_ gets the connection
normally.

I've checked sshd_config - port forwarding is allowed.

What could be the reasons?
What shall I check next?

thanks in advance,
Zrin



Relevant Pages

  • port forwarding
    ... A friend of mine and me are trying to use port forwarding so that I can ... He has Mandrake Linux, squid and ssh ... We both are very fresh to ssh. ... channel 2: open failed: connect failed: Connection refused ...
    (SSH)
  • Port Forwarding over Unreliable Connections
    ... I make extensive use of ssh port forwarding to access machines behind ... patiently wait a long time before finally snipping the connection. ...
    (comp.security.ssh)
  • Re: Port Forwarding over Unreliable Connections
    ... >I make extensive use of ssh port forwarding to access machines behind ... >patiently wait a long time before finally snipping the connection. ... two separate TCP connections when you do port forwarding, ...
    (comp.security.ssh)
  • Re: Netgear router problem..
    ... Port forwarding is turned on for applications like amule, azureus, mail ... router and than it's working fine again. ... The other computer is running only winblows and the connection is ok. ...
    (comp.unix.bsd.freebsd.misc)
  • Re: A question about Firewall in XP
    ... allow port forwarding and filtering to a protected ... getting a broadband connection to consider shelling out the extra money (or ... The author thinks personal firewalls are a ... Finding out that you've got a trojan is the ...
    (microsoft.public.windowsxp.security_admin)