LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   Remotely Access Ubuntu Server (https://www.linuxquestions.org/questions/linux-newbie-8/remotely-access-ubuntu-server-4175463915/)

gemmajid 05-29-2013 04:35 AM

Remotely Access Ubuntu Server
 
Hello Guys,

I have Ubuntu 10.10 server, I have installed ssh in it and it's working fine but i want to access my server from outside the office through ssh i do have Static ip kindly let me know the procedure.

bloodstreetboy 05-29-2013 04:49 AM

Take a look at this similar question.
http://www.linuxquestions.org/questi...de-lan-513343/

or

you can run the command on the system outside LAN if you know password of the user.

Quote:

$ ssh username@xxx.xxx.xx.xx
where xxx.xxx.xx.xx is static IP
Now it will ask for password of username, enter it and you are connected to the server remotely.

If you do not know the password then you should have authorized key files of the server like .pem file or similar file.

Take a look here
http://support.suso.com/supki/SSH_Tutorial_for_Linux

gemmajid 05-29-2013 05:41 AM

I have followed the instruction but didn't succeed. My server is connected with a router and a router has PTCL internet connected with it which has Static IP which is 203.135.58.152and when i connect ssh it doesn't work.

descendant_command 05-29-2013 05:52 AM

You need to forward the external port to the internal ip of the target machine.
Check out the web control panel of your router.

gemmajid 05-29-2013 06:44 AM

and if i want to make my server online like a website so may user can use it easily what procedure should i use ?

linuxzilla.com 05-29-2013 07:06 AM

Hi Majid,

You need to use port forwarding if there is a router involved, but it may still create issues for you. Best way is to permanently add the dedicated public IP address on your ethernet card & it must be shown when you run the ifconfig command. This way your users will be able to access easily over the internet.

By the way, I just tried to ping it and it is reachable:

C:\Users>ping 203.135.58.152

Pinging 203.135.58.152 with 32 bytes of data:
Reply from 203.135.58.152: bytes=32 time=212ms TTL=51
Reply from 203.135.58.152: bytes=32 time=244ms TTL=51
Reply from 203.135.58.152: bytes=32 time=219ms TTL=51

descendant_command 05-30-2013 02:57 AM

Quote:

Originally Posted by linuxzilla.com (Post 4961283)
Best way is to permanently add the dedicated public IP address on your ethernet card & it must be shown when you run the ifconfig command. This way your users will be able to access easily over the internet.

Bollocks.

Quote:

By the way, I just tried to ping it and it is reachable:
That is his router responding....



Quote:

Originally Posted by gemmajid (Post 4961271)
and if i want to make my server online like a website so may user can use it easily what procedure should i use ?

Same.
Forward the target port (80 for web) to the internal machine.

chrism01 05-30-2013 08:05 PM

If you're going to expose this machine to the world, please

1. get up to date (v12 is out)
2. read the Sticky posts in the Security Forum.

You'll thanks me later :)


All times are GMT -5. The time now is 11:20 PM.