ssh tunnel fails to connect
J
dreadpiratejeff at gmail.com
Wed Jul 8 20:54:52 UTC 2015
On Wed, Jul 8, 2015 at 4:21 PM robert <robert at redcor.ch> wrote:
>
> i run the following command:
> robert at mozart:~$ ssh -N -R 50005:localhost:50005 root at 10.42.0.49
>
> however, when I try to connect to the tunnel from the remote system with:
> telnet localhost 50005
> i get :
> Trying 127.0.0.1...
> Connected to localhost.
> Escape character is '^]'.
> Connection closed by foreign host.
>
>
> and on the local system i get:
> connect_to localhost port 50005: failed.
>
>
are you sure that A: telnetd is listening on the other system and is
telnetd listening on port 50005?
Telnet typically listens by default on port 23, so try 50005:localhost:23,
or better yet 23:localhost:23
Also, why are you using telnet across an ssh tunnel anyway? why not just
SSH directly? Or use sshuttle if you need a tunnel (sshuttle is a lot
easier).
http://www.unixmen.com/sshuttle-poor-mans-vpn-ssh/
Cheers,
Jeff
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20150708/6764f8a5/attachment.html>
More information about the ubuntu-users
mailing list