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 want to connect to my home's computer when i was at another place .but my home's computer is behind a router.and i can't set the router , cause it is not my. any way i can let my home's computer visible to the global internet , so i can find it at another place? my friends told me use NAT traversal . but i don't know how to implement it .

any one could help me ? thank you .

i use gentoo linux os , and i just want to connect to my home's computer use ssh , so i can control my home's computer .

share|improve this question

migrated from Mar 25 '11 at 21:11

This question came from our site for professional and enthusiast programmers.

You don't say what you want to do when you connect, and you don't say what the OS is (I suspect windows?). That'd be helpful. – Wes Hardaker Mar 24 '11 at 12:50

You can use TeamViewer, this app allow to conect even if you have dynamic ip.

share|improve this answer
it seems teamviewer is not free , and i want to do it myself . – mike Mar 24 '11 at 15:03

SSH, NAT traversal ? Sounds strange.

All you need to do is TCP & UDP forward port 22 (SSH) to your Linux box's internal IP. Then, you also need to tell your router to always give the same internal IP to your Linux box (via MAC address or netbios [=computer] name).

You can use TightVNC for remote-controlling X11 (you need to port-forward the VNC port (5900 and also 5500 and 5800).

Another option is to use x-forwarding with SSH.

(ssh -X)

And you can also use sshfs, if you only want to access your files.

mkdir -p /mnt/sshfs
sshfs username@targetip:/ /mnt/sshfs

On a sidenote: Make sure you only use 4096 bit RSA private/public key authentication on SSH. No passwords, or you will get brute-force hacked in no time with absolute certainty.

(my SSH logs shows about 4000+ distinct hack attempts in the last 6 months, which means 22 distinct attempts per day...)

share|improve this answer

You must log in to answer this question.

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