You are not logged in.

#1 2007-11-07 05:26:04

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

How does the internet work?

I don't know how networks work.

I remember using SSH some time ago to copy files from one computer on an intranet to mine.

Now suppose I am away from home and I want access to my computer at home. How do I do this (with e.g. ssh (or maybe I really haven't understood what that does))?

Offline

#2 2007-11-07 05:43:53

pauldonnelly
Member
Registered: 2006-06-19
Posts: 776

Re: How does the internet work?

Yes, SSH does what you thought, but in order to accomplish what you want you need to set up your home router/hardware firewall to forward everything on port 22 (the usual SSH port) to the computer you want to access. Beware, this means that anyone who knows your IP address has a potential vector of attack! To be on the safe side you should set SSH up to disallow password login, and only allow key based login. You can find lots of tutorials for that, I'm sure. Then you just run "ssh my.home.ip.address" from your remote internet-connected computer, and there you are.

If you aren't currently using SSH, you'll probably need to add "sshd: ALL" to /etc/hosts.allow

Offline

#3 2007-11-07 12:56:34

nogoma
Member
From: Cranston, RI
Registered: 2006-03-01
Posts: 217

Re: How does the internet work?

In particular, I think this guide will get you up and running on the sshd stuff: http://wiki.archlinux.org/index.php/SSH
Port forwarding is a pretty generic topic, and as already stated a quick google search will probably yield the information you need. If you're going to be regularly accessing your home box from other locations, you might want to look at something like http://www.dyndns.com/ (unless you have a static IP, which is typically unusual for home connections).

Last edited by nogoma (2007-11-07 12:57:06)


-nogoma
---
Code Happy, Code Ruby!
http://www.last.fm/user/nogoma/

Offline

#4 2007-11-07 15:11:45

peets
Member
From: Montreal
Registered: 2007-01-11
Posts: 936
Website

Re: How does the internet work?

Thank you! This has been mysterious to me for too long.

Offline

Board footer

Powered by FluxBB