Results 1 to 4 of 4

Thread: openssh only accepting local network connections

  1. #1
    Join Date
    Jun 2019
    Beans
    1

    openssh only accepting local network connections

    I've freshly installed an 18.04 LTS server with openssh. I opened ports 22, 80 and 443 in UFW. I can only connect to SSH on the local network. At first, I thought the problem was UFW, but I get the same result with UFW disabled. I have a 16.04 server on the same network which I can access with no problem; and I can ssh into the 16.04 to get to the 18.04. Any suggestions?

  2. #2
    Join Date
    Mar 2010
    Location
    Squidbilly-Land
    Beans
    Hidden!
    Distro
    Ubuntu

    Re: openssh only accepting local network connections

    Troubleshooting ssh Connections: https://blog.jdpfu.com/2015/08/17/tr...sh-connections has multiple steps. You've done some already.

    Code:
    ssh -vvv userid@ip
    to see verbose output. Often this will show some odd error.
    Also, check the logs on the server. If the connection isn't even getting to the sshd, then it is a client-side issue or firewall somewhere between.

    And don't forget trying a different client.

  3. #3
    Join Date
    Nov 2008
    Location
    Boston MetroWest
    Beans
    16,326

    Re: openssh only accepting local network connections

    /var/log/syslog and /var/log/auth.log are your friends along with bumping up the client verbosity as TheFu recommends.
    If you ask for help, do not abandon your request. Please have the courtesy to check for responses and thank the people who helped you.

    Blog · Linode System Administration Guides · Android Apps for Ubuntu Users

  4. #4
    Join Date
    Jan 2007
    Beans
    768
    Distro
    Ubuntu 18.04 Bionic Beaver

    Re: openssh only accepting local network connections

    When you're accessing the servers from "not the local network", is this over the internet? Via a VPN? Or do both boxes have public IPs?

    What's the error you get when you try? Try the verbose setting as TheFu asked.

    If the boxes have private IPs, some sort of NAT or port forwarding needs to happen to get to them from outside unless you're VPNed in.

    It could also be a firewall not allowing access to the new box from outside, even if the IPs are public.

    You said you also opened 80 and 443, is there a webserver on the box you can try accessing? If you can't get to that either, it's probably a firewall in between needing to be configured.
    Current 'buntu systems: multiple systems running Server or Desktop 22.04 LTS / Retired or Upgraded: 18.04.2 LTS, Mythbuntu 16.04 LTS, Ubuntu 16.04.1 LTS, 14.04 LTS, 10.04 LTS, 8.04 LTS
    Been using ubuntu since 6.04 (16 years!)

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
  •