Find the answer to your Linux question:
Results 1 to 4 of 4
Enjoy an ad free experience by logging in. Not a member yet? Register.
  1. #1

    Access SSH internationally?

    I have a website server that I connect to via ssh. The problem is I cannot connect to it except when I'm in the same network. So I cannot access it outside of my house. when I type in [I]ip addr[I], it shows a bunch of them and I pick eth0 and pick the inet ip and type it it. This usually works in my home network. But how do I make it so I can access it anywhere???

  2. #2
    Super Moderator Roxoff's Avatar
    Join Date
    Aug 2005
    Nottingham, England
    Your external IP addresses should be visible across the internet (unless your territory governance prevents some access) - so that means all you need is to ensure that you get the same IP address for your connection each time you use it.

    Your ISP usually assigns IP addresses when you connect to the internet from a pool it has available, but most will allow you to buy a static IP address that never changes for a small fee.

    Once you have your static IP address you can use it to connect from anywhere. One word of warning, though, your ADSL modem/router will normally be configured to reject connection attempts, so you'll need to adjust its firewall to cope.

    This is quite a big topic, though - you might want to spend some time Googling/reading to help you understand it better. There is a little bit of information on TLDP which might help.
    Linux user #126863 - see

  3. #3
    Linux Guru
    Join Date
    Dec 2013
    Victoria, B.C. Canada
    I'll just point out that your external IP address isn't the address you'll see on a computer connected to most internet access modem/routers. Generally you'll be "natted" and assigned an address from the private ranges. The external address will be the address your router is assigned by your ISP. You'll need to set up port forwarding on the router to get to the natted box.

  4. $spacer_open
  5. #4
    Linux Guru Rubberman's Avatar
    Join Date
    Apr 2009
    I can be found either 40 miles west of Chicago, in Chicago, or in a galaxy far, far away.
    You can use a VPN to create a tunnel to the network the server exists within, and then ssh through that. I do that every day when the firewalls of the network where the node I am trying to connect with doesn't allow outside acces via port 22 to internal servers.
    Sometimes, real fast is almost as good as real time.
    Just remember, Semper Gumbi - always be flexible!

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts