PDA

View Full Version : [ubuntu] [SOLVED] How do I access my ssh server?


Eto_Demerzel
September 22nd, 2008, 08:33 PM
I installed open-ssh server on my home computer to be able to access my files at home through the internet.

To check if it was installed properly, I tried

ssh localhost
and I saw it was working.

I tried logging into the server from another computer on the same wireless network

ssh my_username@192.168.0.14
and I was able to access my files. (192.168.0.14 was the address assigned to me by the router at that time)

Now, how do I access my files through the internet? I'm guessing the command is of the form

ssh something1@somthing2
Can you tell me what something1 and something2 would be? How can I find out them? And should I set up some port forwarding on my computer?

Thanks.

baudday
September 22nd, 2008, 11:12 PM
Find out what your server's ip is. Just go to google and type in what is my ip and the first site tells you what your global ip or whatever is. And then you just use that. So for instance,

ssh user@your.external.ip

cariboo907
September 22nd, 2008, 11:35 PM
If you want to access your computer from the Internet, you will have to set up port forwarding in your router. It would be best to set a static ip address on your server, as dhcp addresses keep changing. Then forward port 22 from your server to the router. then open canyouseeme (http://www.canyouseeme.org/) in your browser and check if port 22 is open on your router. Then to access your server from anywhere:

ssh user@external_address

Where external_address is the external ip address of your router.

Jim

Eto_Demerzel
September 23rd, 2008, 01:18 AM
Great! It worked!

Thanks a lot!