I'm trying to configure my home computer to allow SSH from an outside location (work, friend's house, etc). I've done a bit of searching for how I might accomplish this but was hoping to get a more definitive answer.
Step 1:
Configure my home router to forward port 22 to my Linux box.
How? I enter the admin functions on my router and enable port forwarding to an internal IP address.
Which IP address is my Linux box?
Search for "inet addr:" under the "eth0" section.
Step 2:
Determine your outside IP address.
whatismyipaddress.com
Step 3:
Install an ssh server.
Step 4:
From an outside location try to SSH to your home box.
Are these steps correct? Am I missing something? Do I need to ensure that my home computer will accept ssh requests from outside ("untrusted") locations? Is there a decent way to test this while at my home computer?
Are there any other issues I can expect when trying to do this?
Any help would be greatly appreciated. Thank you!
Step 1:
Configure my home router to forward port 22 to my Linux box.
How? I enter the admin functions on my router and enable port forwarding to an internal IP address.
Which IP address is my Linux box?
Code:
user@host:~/$ ifconfig
Step 2:
Determine your outside IP address.
whatismyipaddress.com
Step 3:
Install an ssh server.
Code:
user@host:~/$ sudo apt-get install openssh-server
From an outside location try to SSH to your home box.
Code:
user@host:~/$ ssh home_username@outside_ip_address
Are there any other issues I can expect when trying to do this?
Any help would be greatly appreciated. Thank you!
Comment