Take the 2-minute tour ×
Server Fault is a question and answer site for system and network administrators. It's 100% free, no registration required.

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 stackoverflow.com 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

2 Answers 2

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.

    Related: http://serverfault.com/questions/57536/57538#57538

  • 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.

    Related: http://serverfault.com/questions/23797

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:

http://www.dmoz.org/Computers/Internet/Protocols/DNS/DNS_Providers/Dynamic_DNS/ http://www.technopagan.org/dynamic/

(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" my@email.com –  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

 
discard

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.