1
1
So I've been scouring the internet for days trying to figure this out and can't figure it out.
I know its going to be an easy one.
So I recently took an old desktop and loaded ubuntu server 12.04 on it. My goal with this project is to create an area to host a few git repositories and maybe a simple webpage.
I've installed both the SSH and Apache2 packages and tried to configure them. Right now I can log in from my laptop using ssh greg@0.0.0.0.0 but only while I am on the same network. Once I leave the house I get a timeout error.
So 2 things I would like to get at right now.
How to configure the SSH to allow me to access the server from outside the network. Get my host name on the server so logins will be greg@hostname instead of greg@0.0.0
(I've done sudo hostname and changed the etc/hostname file and no results)
Thanks guys.
some answers to the original question posted at stackoverflow (http://stackoverflow.com/questions/18939285/how-to-access-my-ssh-linux-server-from-outside-my-home-network) may also be helpful
– david.barkhuizen – 2015-05-06T13:59:02.7401I assume you have a normal ISP and the server at home is behind a router. Did you forward port 22 through the router to your server? Are you using the external IP address of the router when you are away from home? – William Jackson – 2013-09-22T01:15:13.783
I think that I did. Here is a screen shot
http://i1303.photobucket.com/albums/ag148/Greg_Ruth/ScreenShot2013-09-21at61547PM_zps73fe1867.png
Port forwarding looks good. Now, when you are away from home, what IP address are you trying to connect to? 192.168.0.18 won't work. You need the external IP address of your router. – William Jackson – 2013-09-22T01:23:13.310
Can't believe I wasn't using the right address. Thanks a lot. How can I get a hostname to work instead of the the address. (greg@hostname.com instead of greg@0.0.0.0.0) – Greg – 2013-09-22T01:26:29.157
Post in the answer so I can up rate you – Greg – 2013-09-22T01:26:46.597