<div dir="ltr"><div class="gmail_quote"><div dir="ltr">On Wed, Jul 8, 2015 at 4:21 PM robert <<a href="mailto:robert@redcor.ch">robert@redcor.ch</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><br>
i run the following command:<br>
robert@mozart:~$ ssh -N -R 50005:localhost:50005 <a href="mailto:root@10.42.0.49" target="_blank">root@10.42.0.49</a><br>
<br>
however, when I try to connect to the tunnel from the remote system with:<br>
telnet localhost 50005<br>
i get :<br>
Trying 127.0.0.1...<br>
Connected to localhost.<br>
Escape character is '^]'.<br>
Connection closed by foreign host.<br>
<br>
<br>
and on the  local system i get:<br>
connect_to localhost port 50005: failed.<br><br></blockquote><div><br></div><div>are you sure that A: telnetd is listening on the other system and is telnetd listening on port 50005?</div><div><br></div><div>Telnet typically listens by default on port 23, so try 50005:localhost:23, or better yet 23:localhost:23</div><div><br></div><div>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).</div><div><br></div><div><a href="http://www.unixmen.com/sshuttle-poor-mans-vpn-ssh/">http://www.unixmen.com/sshuttle-poor-mans-vpn-ssh/</a><br></div><div><br></div><div>Cheers,</div><div><br></div><div>Jeff</div></div></div>