LinuxQuestions.org
Register a domain and help support LQ
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices

Reply
 
Search this Thread
Old 05-29-2013, 04:35 AM   #1
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 72

Rep: Reputation: Disabled
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.
 
Old 05-29-2013, 04:49 AM   #2
bloodstreetboy
Member
 
Registered: May 2012
Posts: 195
Blog Entries: 3

Rep: Reputation: 37
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
 
Old 05-29-2013, 05:41 AM   #3
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 72

Original Poster
Rep: Reputation: Disabled
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.
 
Old 05-29-2013, 05:52 AM   #4
descendant_command
Member
 
Registered: Mar 2012
Posts: 804

Rep: Reputation: 182Reputation: 182
You need to forward the external port to the internal ip of the target machine.
Check out the web control panel of your router.
 
Old 05-29-2013, 06:44 AM   #5
gemmajid
Member
 
Registered: Mar 2012
Location: Karachi
Distribution: Ubuntu, RedHat, CentOs,
Posts: 72

Original Poster
Rep: Reputation: Disabled
and if i want to make my server online like a website so may user can use it easily what procedure should i use ?
 
1 members found this post helpful.
Old 05-29-2013, 07:06 AM   #6
linuxzilla.com
LQ Newbie
 
Registered: May 2013
Distribution: CentOS, Ubuntu, Debian
Posts: 22

Rep: Reputation: Disabled
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
 
Old 05-30-2013, 02:57 AM   #7
descendant_command
Member
 
Registered: Mar 2012
Posts: 804

Rep: Reputation: 182Reputation: 182
Quote:
Originally Posted by linuxzilla.com View Post
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 View Post
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.

Last edited by descendant_command; 05-30-2013 at 03:00 AM.
 
Old 05-30-2013, 08:05 PM   #8
chrism01
Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.5, Centos 5.10
Posts: 16,289

Rep: Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034Reputation: 2034
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
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
[SOLVED] Locked out of my server: can't access SSH remotely awillys Linux - Security 12 01-19-2013 01:36 AM
Remotely access Kubuntu (Ubuntu Server with KDE Desktop) with windows Remote Desktop brunellehomenet Linux - Newbie 3 10-21-2012 09:20 AM
I can't access remotely to a linux server acdf Linux - Server 15 08-24-2012 08:00 AM
ubuntu LAMP server, can't access site remotely, locally works by local ip and wan weylin Linux - Newbie 8 04-25-2012 06:37 AM
LXer: How to Access Your Ubuntu Remotely LXer Syndicated Linux News 0 06-24-2007 03:46 PM


All times are GMT -5. The time now is 01:46 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration