problem with port forwarding
From: Georg D. (georg_at_nospam)
Date: 12/02/03
- Next message: Xiaoshen Li: "enable ssh question"
- Previous message: Jacob Nevins: "Re: rsa + passwd authentification"
- Next in thread: Darren Tucker: "Re: problem with port forwarding"
- Reply: Darren Tucker: "Re: problem with port forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
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
- Next message: Xiaoshen Li: "enable ssh question"
- Previous message: Jacob Nevins: "Re: rsa + passwd authentification"
- Next in thread: Darren Tucker: "Re: problem with port forwarding"
- Reply: Darren Tucker: "Re: problem with port forwarding"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|