Super User is a question and answer site for computer enthusiasts and power users. 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

I have a PC running on Windows 7 Ultimate x64 and I want to connect to it via ssh. I've found some solution on the net and installed sshd service, but I cannot connect to my PC because I have no real IP address. I'm connected to internet via local network, I mean that I'm into a local network with my internet provider and they assign me a dynamic IP address anytime I connect and of course I have no access to their routing configurations and I cannot ask them to change something for me. Is there any solution for this situation?

P.S. I also have Ubuntu 11.10 x64 on my PC, so maybe there is a easier solution for Linux.

share|improve this question
I even cannot share my 80 port with others, 80 port opens user account page of that particular user of my provider – haynar Oct 18 '11 at 10:40
Most ISPs assign you a dynamic ip address. Are you saying that your connection is not active 24/7 or something? You need to be confused by some of the more basic networking terms. Its a trivial task to change the port on a ssh connection. – Ramhound Oct 18 '11 at 12:13
Technically, all IP addresses you have are real... – grawity Oct 18 '11 at 15:05
up vote 5 down vote accepted

Reverse SSH tunneling would do the trick - in short, you get the computer that is behind the nat to connect to the other system's ssh server. You'd have to work out some way to initiate that - possibly some quick and dirty scripting and crontab running the processe to initiate a tunnel every so often, or using an always on system as an intermediary.

An alternative would be to set up some form of configuration free VPN that uses another server as a intermediary - hamachi comes to mind but there's other alternatives that might work.

Edit: autossh might automate the reverse ssh process from the system behind the nat, which would make things simpler

share|improve this answer
and what if both source and destination have the same case? :) – haynar Oct 18 '11 at 10:56
you could use another publicly accessible system in between i suppose. You need at least one publicly accessible system for SSH to work - you could for example set up a Reverse SSH threesome. Perhaps something like TINC might help in that case. – Journeyman Geek Oct 18 '11 at 11:01

You probably need to sign up to something like DynDNS. They have a free servive. This provides you with the ability to connect to something like or similar rather than an IP.

share|improve this answer
yes, I know about that, but my problem is not the dynamic IP, it's in the routing in the local network of my internet provider, they don't forward ports to my computer – haynar Oct 18 '11 at 10:22

Hamachi or any other VPN solutions with NAT-traversal

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .