Server Fault is a question and answer site for system and network administrators. 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 Apache running and GNU Screen at Home. I need to access the comp 100km far away. I want the access only to the files in the folder /var/www.

How can I get a remote control of my computer with SSH?

share|improve this question

migrated from Aug 25 '09 at 6:09

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

Are you asking how to get remote control, remotely, without any help at the physical console? You might need to get someone to type a few things on the console first. – kmarsh Aug 25 '09 at 12:23
up vote 2 down vote accepted
  • Install ssh server. It's not installed on ubuntu by default, but it is available in pacakges - apt-get install openssh-server. The package installation will do all the setup required to use ssh.


  • Allow your router to pass through ssh traffic to your computer. Usually this kind of setting is turned off by default. Most broadband routers can do this via the web interface, but exact instructions will depend on the make/model.


share|improve this answer
ubuntu, it is a tag. – Masi Aug 28 '09 at 9:42
Apologies, didn't spot that, I have updated my answer. – theotherreceive Aug 28 '09 at 10:35

if you don't have a static IP address, you'll also want to use a dynamic DNS service so that you can ssh into your home machine by hostname rather than having to find out what it's IP is every time it changes.

there are lists of dynamic dns providers at:

(sorry, i can't recommend any. i don't use them, i have my own /24 networks and host my own DNS at home)

share|improve this answer
I was going to do it like, cron: ifconfig eth0 | grep "inet addr" | cut -d: -f2| cut -d' ' -f1 | mutt -s "My IP" – Masi Aug 28 '09 at 9:45
Yuck. Also won't work if you're behind NAT. – tomfanning Aug 28 '09 at 10:48

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.