Results 1 to 3 of 3
I'm trying to set up an SSH server so I can tunnel my traffic from my Macbook Pro at college to my Debian (or any other distro, if it's more ...
Enjoy an ad free experience by logging in. Not a member yet? Register.
- 07-23-2007 #1Just Joined!
- Join Date
- Jul 2007
- Location
- Orlando, Florida
- Posts
- 3
SSH to a machine behind a router
I'm trying to set up an SSH server so I can tunnel my traffic from my Macbook Pro at college to my Debian (or any other distro, if it's more convenient) box at home. However, my linux box is behind the house's router.
My question is, when I have to specify the address (i.e. user@127.0.0.1) what do I use to tell my laptop that I want my specific machine, and not the router?
- 07-23-2007 #2Linux Guru
- Join Date
- Nov 2004
- Posts
- 6,110
You would forward the appropriate port to your machine. Your router should have NAT or port forwarding configuration on it. By default the port is 22, but I would recommend you change that to stop automatic scripts from scanning and brute forcing you.
Also you can set up a no-ip.com or dyndns.org account so that you can use a domain name to refer to your IP if it changes.
- 07-23-2007 #3Linux Enthusiast
- Join Date
- Apr 2004
- Location
- UK
- Posts
- 678
To do this, set up port forwarding on your router to forward ssh connections from the router to your Debian box, then try to ssh to your router and it will end up connecting to the Debian box.
Most home routers support something like this, either called port forwarding or virtual hosts.
Your server distribution doesn't really matter, just so long as sshd is installed and configured.
Let us know how you get on,
Chris...To be good, you must first be bad. "Newbie" is a rank, not a slight.


Reply With Quote
