port tunneling over ssh (not port-forwarding in the traditional sense)

port tunneling over ssh (not port-forwarding in the traditional sense)

Post by C3 » Thu, 27 Jul 2006 23:42:37



Does anybody know of a way to do port forwarding over ssh not using the
standard ssh functionality, but rather by running a utility on the server
and using a special client that forwards data through the terminal session.

I think PPP and slirp would do the job, but I would prefer to have a
standalone client that exists solely to forward one (or several) ports,
rather than acting as my main network connection.

 
 
 

port tunneling over ssh (not port-forwarding in the traditional sense)

Post by Andrew Schulma » Fri, 28 Jul 2006 00:44:48


Quote:> Does anybody know of a way to do port forwarding over ssh not using the
> standard ssh functionality, but rather by running a utility on the server
> and using a special client that forwards data through the terminal session.

> I think PPP and slirp would do the job, but I would prefer to have a
> standalone client that exists solely to forward one (or several) ports,
> rather than acting as my main network connection.

I don't know of such a method, although it probably can be done.  But I'm
having trouble understanding what the advantage is.  You still have to run
an ssh client and ssh server.  Then you want to add an additional client and
server that will communicate over the ssh connection, in order to forward
some ports.  But the ssh session will already do this, so where's the
benefit?

Are you maybe thinking of automation?  That is, you want to ports to be
forwarded automatically as soon as you boot or log in, without you having to
start an ssh client session?  If so, then maybe autossh is what you want:
http://www.harding.motd.ca/autossh/.

--
To reply by email, change "deadspam.com" to "alumni.utexas.net"

 
 
 

1. I have this strange problem with vmware and port tunneling/forwarding using ssh

My configuration:

Host        IP        OS
------------------------------
Box1 - 192.168.1.10  WindowsXP
VM1  - 192.168.1.14  Linux as guest os running under Vmware on Box1
Box2 - 192.168.1.11  WindowsXP
Box3 - 192.168.1.12  WindowsXP

Basically, I have a Box1 that is running WindowsXp as host and Vmware
with guest os being SuSe Linux(VM1).  Now, from Box2(xp) I ssh into
VM1 and open following two tunnels so I can do a remote desktop using
SSH tunneling.

13389:box1:3389
23389:box3:3389

The problem is when I run remote desktop client using
"localhost:13389", I get a black screen after I type in my login
information on login window and then error "The connection was ended
because of a network error.  Try remote desktoping again".  However,
If I do "localhost:23389" it works just fine. No problem at all. The
difference here is that the port forwarding is taking place to another
physical box(Box3).  By the way if I was to do remote desktop directly
into Box1,  without tunneling, it works just fine.  So, I think
problem is not on Windows Xp side since I can login directly.

Has anyone done this or has experienced this.  To me it seems like
some thing to do with vmware(bridge networking, etc...).  Any help on
this would be appreciated.

By the way those of you that are not familar about "localhost:13389"
on remote desktop client connection.  You can do this by simply coping
out mstsc.exe and mstscax.dll out to some other folder then
c:\windows\system32 and then configure mstsc.exe to run in windows 98
compatible mode(by right click, properties, compatibility, etc...).

Thanks for any help.

2. Debian installation question

3. Using SSH Tunnel To Forward Port 25 (SMTP) From Off Campus

4. CD-R

5. SSH port forwarding/tunneling

6. Trouble booting from 4.6.2 disc1

7. Forward RDP port through my firewall via ssh tunnel, HOW?

8. quick way of killing multiple <defunct> processes

9. SSH port forwarding/tunneling question

10. ssh tunnel to non-standard ssh port

11. port forward port 80 to port 8080

12. HELP Port Forwarding on Linux: Dest Port Known, Source Port High (1024-65535)

13. SSH port-forwarding mechanics