Results 1 to 3 of 3
Thread: SSH to a machine behind a router
Enjoy an ad free experience by logging in. Not a member yet? Register.
- Join Date
- Jul 2007
- Orlando, Florida
SSH to a machine behind a router
My question is, when I have to specify the address (i.e. email@example.com) what do I use to tell my laptop that I want my specific machine, and not the router?
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.
- Join Date
- Apr 2004
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.