Unix & Linux Stack Exchange is a question and answer site for users of Linux, FreeBSD and other Un*x-like operating systems. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

How can I access to remote computer that the remote computer is in a local network? I worked with reverse ssh : http://www.vdomck.org/2005/11/reversing-ssh-connection.html I don't want just SSH but I want other port's of remote computer too I want to connect to remote computer by http,ssh ,mysql,ppp,... ports How can I do that?

share|improve this question

If the ports aren't firewalled, then you just a need a mechanism for finding out the remote machine's IP address - which could, as Hanan N. suggests, be using a dynamic DNS service - or just roll your own method for registering the address (NB a lot of ISPs now use transparent HTTP proxying - so might not be a good idea to send this data over port 80).

But if you've can get ssh running then you can run pppd on top of ssh to establish a VPN connection

share|improve this answer
You don't need pppd for an SSH vpn. OpenSSH has the "Tunnel" option, which establishes a VPN link. The SSH server disallows tunnels by default. The "PermitTunnel" option in sshd_config can be used to allow tunnels. Note that using SSH as a VPN can cause significant performance problems; see sites.inka.de/bigred/devel/tcp-tcp.html for a discussion of the issue. If possible, it's better to use a VPN that uses UDP or IPSec as a transport. – Jonathan Dec 12 '11 at 17:43
Last time I looked in depth at this support for tunnel varied a bit - maybe I'm a bit out of date. Regarding performance, I'd found only about a 10% overhead using ppp over SSL with no measurable jitter - although you do need to tune the MTU – symcbean Dec 13 '11 at 10:12

You basically need two things:

  1. Create a free account on dyndns service, and install a program on your computer or better config your router to use their service (in case you have DD-WRT installed on it), that would map a name that is associated with your current public IP that your ISP gave you. With that name you can create connection with your router from anyware in the world no matter what is the IP you have got since the dyndns service update the name to associate with your current IP address.
  2. You should forward from your router the desired port you want to point to your local computer IP address, you can set the router to open port 5001 and each time it get an IP packet from the outside world it should forward that to the IP address you have set it to forward to.
share|improve this answer
I used to use dyn, I use no-ip.org now. – Rob Dec 12 '11 at 16:32
@Rob: great, it is same thing, i am too using no-ip. – Hanan N. Dec 12 '11 at 16:38

What about a reverse socks proxy? Using the -D switch.

share|improve this answer
ssh -D from my client to the server?! Can you explain it? – sinoohe Dec 13 '11 at 12:02
Let the clients on the server connect to the socks server over there. Ssh can then tunnel those connections to services on the client. – Folkert van Heusden Dec 14 '11 at 8:20

Use any dynamic dns services (like dyndns.org). You need to install service's client (client from dyndns is present in most repositories) and it sends your current ip to their servers. And they update a-name domain records. Therefore you have free third-level domain with always up-to-date information about your current ip.

share|improve this answer
What's the value of the IP address, if that computer is behind a NAT (masquerading)?.. – imz -- Ivan Zakharyaschev Dec 12 '11 at 12:10
You can use dynamic dns if you're able to forward ports to your computer. Otherwise there is noway to solve this problem. Of course you can use ipv6 tunnel, but, unfortunately, most internet users dont't have ipv6 at all. – rush Dec 12 '11 at 12:22
Ok, forwarding ports is another part of the solution. Simply knowing the IP address (the only thing discussed in this answer) gives little. – imz -- Ivan Zakharyaschev Dec 12 '11 at 12:28
Is there any Free sofrware for this purpose? , I don't want to use any proprietary software – sinoohe Dec 13 '11 at 11:59

If you don't have a public IP, you can use SSH over XMPP/Jabber protocol. So you can get access with just Google Talk on your desktop or mobile phone (e.g. Android).

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.