Using ssh over the internet

Want to just shoot the breeze? Forum 42 is the place!

Moderator: Moderators

Post Reply
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Using ssh over the internet

Post by ghosstt »

Well, I got off my ass and set up that server I was talking about. (Just need to work on the hard drive situation.) I installed ssh on the server, as well as the client, and can access it perfectly from the terminal. Now the big question... How do I do this from a much further remote location? :P (Outside of my lan)

I'm assuming its something like:

ssh user@externalip

with all information from port 22 forwarded to the server? How do I get the external IP of the server? Or does each individual computer not have a external IP, and its just 1 per "internet" (if you get what I mean)
bicostp
Moderator
Posts: 10491
Joined: Mon Mar 07, 2005 5:47 pm
Steam ID: bicostp
Location: Spamalot
Contact:

Re: Using ssh over the internet

Post by bicostp »

To start out with, you would have to give your server a static IP address and forward the port to it (assuming your ISP doesn't block incoming SSH traffic for security reasons).
ghosstt
Senior Member
Posts: 1551
Joined: Mon Feb 26, 2007 4:14 pm

Re: Using ssh over the internet

Post by ghosstt »

OK, I set up the static IP address. (lets say its 192.168.1.203) So now I forward port 22 to 192.168.1.203. Then how do I access it from outside my LAN?

edit: It worked when I tried user@outsideip. Now, all it does security wise now, is tell me when I try and access a new IP for the first time, that the authenticity can't be establish, and the RSA finger print, etc. etc, and I'm assuming this is because its the first time connecting to that IP.

I've read some stuff about using keys, or something of the sorts? How exactly does that work?
Sparkfist
Forum Administrator
Posts: 6754
Joined: Tue Apr 20, 2004 7:12 am
Location: Michigan

Re: Using ssh over the internet

Post by Sparkfist »

Forward port 22 to your server. Ssh uses this to open connections, then after it's established it will use a higher port range for security. And as 22 is really always unblocked, you don't need to worry about your ISP blocking it.

-Sparkfist
vskid wrote:Nerd = likes school, does all their homework, dies if they don't get 100% on every assignment
Geek = likes technology, dies if the power goes out and his UPS dies too

I am a geek.
Post Reply