ssh tunnel fails to connect

robert rottermann robert at redcor.ch
Wed Jul 8 22:24:47 UTC 2015


Thank Jeff for your answe
On 08.07.2015 22:54, J wrote:
> On Wed, Jul 8, 2015 at 4:21 PM robert <robert at redcor.ch 
> <mailto: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
>     <mailto: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.
>
>
I need the tunnel for a debugging session. The debugging IDE is running on the 
local box, the debugee runs on  the remote computer (a raspberry)
I used telnet only to demonstrate the behaviour.

any more ideas?

robert

> 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/20150709/14ab358c/attachment.html>


More information about the ubuntu-users mailing list