Results 1 to 8 of 8

Thread: SSH issues over the internet

  1. #1
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    SSH issues over the internet

    Hello, I'm trying to access my servers over the internet, I have configured all servers to run off port 39352 and on the lan ssh works fine.

    Both of my servers one Ubuntu 13.10 the other Debian Wheezy show these ports as open when I run locally;

    Code:
    rhys@cherry:~$ nmap -p 39352 192.168.1.36
    
    Starting Nmap 6.40 ( http://nmap.org ) at 2014-03-22 12:59 GMT
    Nmap scan report for tomato.default (192.168.1.36)
    Host is up (0.0041s latency).
    PORT      STATE SERVICE
    39352/tcp open  unknown
    
    Nmap done: 1 IP address (1 host up) scanned in 0.21 seconds
    I have an EE router, which has public port 39036 forwarded to private port 39352 on private IP 192.168.1.36 and public port 39030 forwarded to private port 39352 on private IP 192.168.1.30

    http://www.canyouseeme.org/ says

    Code:
     Success: I can see your service on 1.22.333.444 on port (39036)
    Your ISP is not blocking port 39036
    However SSH doesn't work

    Code:
    rhys@cherry:~$ ssh -p 39036 rhys@1.22.333.444
    ssh: connect to host 1.22.333.444 port 39036: Connection refused
    rhys@cherry:~$ nmap -p 39036 1.22.333.444
    
    Starting Nmap 6.40 ( http://nmap.org ) at 2014-03-22 13:04 GMT
    Nmap scan report for 1.22.333.444
    Host is up (0.0021s latency).
    PORT      STATE  SERVICE
    39036/tcp closed unknown
    
    Nmap done: 1 IP address (1 host up) scanned in 0.19 seconds
    I've tried disabling all firewalls on both the router and server, but nothing works. I've also tried connecting via putty on a physically different network, which comes back with a similar error.

  2. #2
    Join Date
    Sep 2006
    Beans
    8,627
    Distro
    Ubuntu 14.04 Trusty Tahr

    Re: SSH issues over the internet

    In your description you have port 39030 and in your sample you have 39036. Is that a typo?

  3. #3
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: SSH issues over the internet

    Quote Originally Posted by Lars Noodén View Post
    In your description you have port 39030 and in your sample you have 39036. Is that a typo?
    I have two servers, one I have forwarded from public port 39030 and the other from 39036 both to their private IP's on local port 39352.

  4. #4
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: SSH issues over the internet

    Methodically eliminate possibilities.

    Can you ssh between the two systems inside their lan?
    Code:
    rhys@debian:~$ ssh -p 39352 rhys@ubuntu
    
    rhys@ubuntu:~$ ssh -p 39352 rhys@debian
    If ssh works locally between the servers, then it's not an ssh or local firewall issue.
    Then (and only then) is it time to start testing your router firewall and forwarding rules.

  5. #5
    Join Date
    Jan 2014
    Beans
    Hidden!

    Re: SSH issues over the internet

    Verifying that ssh is properly configured for 39352 as ian-weisser says is a good start.



    If I understand your description, you can't access your servers that are behind a NAT firewall by their public IP while you too are behind that same firewall, correct? If so, that's because you need a router capable or hairpinning (reflection). I'm not familiar with EE, but you may also want to verify that. You said you tried from a different network, but it wasn't clear if you were on the other side of the NAT.

  6. #6
    Join Date
    Sep 2008
    Location
    England
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: SSH issues over the internet

    Yes, I can access both servers from any client on the LAN, via port 39352.

    Yes, I am trying this from behind the same firewall. Although I have tried accessing from another Windows machine in a different location behind a different router and NAT using Putty and this still fails.
    Last edited by AmbiguousOutlier; March 22nd, 2014 at 05:21 PM.

  7. #7
    Join Date
    Jul 2013
    Location
    Wisconsin
    Beans
    4,952

    Re: SSH issues over the internet

    Then it seems time to ignore the servers, and focus on your router's settings.

  8. #8
    Join Date
    Apr 2012
    Beans
    7,256

    Re: SSH issues over the internet

    The failure to connect from inside the LAN may be due to your router not supporting NAT loopback - the failure via PuTTY from outside the LAN may be unrelated... ?

Bookmarks

Posting Permissions

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