ssh tunnel // "telnet localhost tunnel_port" works, from remote host "telnet hostname tunnel_port" fails
From: Vince (vince_v_at_lycos.de)
Date: 04/22/05
- Next message: Nico Kadel-Garcia: "Re: HowTo: to enable tcpwrapper in openssh for SUSE(linux)"
- Previous message: Vince: "ssh tunnel // "telnet localhost tunnel_port" works, from remote host "telnet hostname tunnel_port" fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Date: 22 Apr 2005 03:18:52 -0700
Hi Guys,
I got a SUSE linux box with OpenSSh installed.
<hostname>:/proc # uname -r
2.4.21-138-smp
<hostname>:/proc # ssh -Version
OpenSSH_3.4p1, SSH protocols 1.5/2.0, OpenSSL 0x0090607f
I use "ssh <remotehost_1> -L 54321:<remotehost_2>:23 to build a ssh
tunnel for a telnet session to remotehost_2 (which can not be accessed
from my linux box directly). remotehost_2 is a HPUX box, could be
anything else too
When I use "telnet localhost 54321" on my linux box this works fine
When I use "telnet <hostname> 54321" on my linux box it fails
hprtdc14:/proc # telnet <hostname> 55555
Trying 12.23.34.45...
telnet: connect to address 12.23.34.458: Connection refused
When I use "telnet <hostname> 55555" from a remote box (windows -
could be anything else too) it fails
C:\>telnet <hostname> 55555
Connecting To <hostname>...Could not open connection to the host, on
port 55555: Connect failed
C:\>
I assume my linux box refuses connections from hosts other than
localhost. Further on I see in netstat that only 127.0.0.1 is listened
on (not on its IP)
<hostname>:/proc # netstat -an | grep 55555
tcp 0 0 127.0.0.1:55555 0.0.0.0:*
LISTEN
tcp 0 0 ::1:55555 :::*
LISTEN
<hostname>:/proc #
Compared to windows: In putty I have an option "Local ports accept
connections from other hosts"
Is there somthing similar on linux? I want to use my ssh tunnel from
other hosts than localhost.
best regards,
Vince
- Next message: Nico Kadel-Garcia: "Re: HowTo: to enable tcpwrapper in openssh for SUSE(linux)"
- Previous message: Vince: "ssh tunnel // "telnet localhost tunnel_port" works, from remote host "telnet hostname tunnel_port" fails"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ] [ attachment ]
Relevant Pages
|
|