Results 1 to 3 of 3

Thread: Access server from outside LAN via SSH

  1. #1
    Join Date
    Jul 2012

    Lightbulb Access server from outside LAN via SSH

    Hi all,
    I have a home server running Ubuntu Server. This server is behind a router with a static IP.
    To access the apache server, in the router I have redirected port 8888 (public) to port 80 (private) so when I type (where the x's represent the router's static ip address) in a web browser from outside the LAN, it displays a home page. That works just fine.
    Now I would like to access the ssh server from outside the LAN. To accomplish this, in the router I redirected port 1982 to the server's (private) port 22, but I keep getting a "Connection timed out" message in Putty while trying to connect to the server.
    Some things to consider:
    1) the sshd daemon is running on the server.
    2) Iptables is not blocking any incoming connections (just to test, it's configured with an ACCEPT ALL policy).
    3) The Putty connection is (where the x's represent the same IP address as above).
    4) I already checked where a suggestion is given but I am not quite sure as how to implement it.
    I hope I have asked this question the smart way. Any suggestions / ideas are more than welcome!

  2. #2
    Join Date
    Jan 2009

    Re: Access server from outside LAN via SSH

    On your LAN, can you access ssh on the server?

  3. #3
    Join Date
    Feb 2009
    Dallas, TX
    Ubuntu 16.04 Xenial Xerus

    Re: Access server from outside LAN via SSH

    Hi gacanepa.

    Just to make sure: Are you trying to connect to your server from outside the network, aren't you?

    Just remember that accessing you public IP from inside your own network it is not usually possible.

    Just a thought.


Posting Permissions

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