Purchase Linux CDs / DVDs / Flash Drives at OSDisc.com

Welcome to Our Community

While Linux.org has been around for a while, we recently changed management and had to purge most of the content (including users). If you signed up before April 23rd please sign up again. Thanks!

Can't ssh into my server from outside my home network

Discussion in 'Linux Networking' started by Andrew A. Robinson, Feb 23, 2017.

  1. I recently setup a file server, and am using the Amahi app over Fedora 24. I frequently ssh into the server, and have used scp to copy from local to remote and vice versa. However, I have been unable to access the server from outside my network using ssh. I have setup the security keys on all my distros, so I know the server accepts and authenticates my devices.
    I can also ping into the server from outside, i.e., ping xx.xx.xxx.xxx, and can ping the server using its internal address, 192.168.2.xxx. When I try to ssh in from outside, using ssh xx.xx.xxx.xxx:[email protected]. I am asked for my password. When I supply the valid password, I get the error: Permission denied, please try again. If I just use the ip address,ssh xx.xx.xxx.xxx, it goes off and never returns a response. Amahi's Wiki has not been useful for this problem.
    I want to get the ssh working before I tackle sftp.I really wish I had taken some networking classes in college. Can anyone help me?

  2. atanere

    atanere Guest

    I think the format is ssh [email protected], so ssh [email protected] or ssh [email protected].

    Of course root is risky but should not get permission denied errors. And any other username will need to exist on the host, perhaps needing to be in a particular group for remote login.

    I don't do remote login so I can't help much, but I do find a lot of examples on Google. Good luck!
  3. rstanley

    rstanley Guest

    Are you sure you have port forwarding setup on your home router to route ssh from the routable WAN address of the router to the non-routable LAN address of the server, 192.168.2.xxx?

    I do use remote access using scp, sftp, and ssh for a system on my home network, and it works fine.

    Also, I highly recommend changing the default ssh port, 22 to some other port. I used to get dozens if not hundreds of attacks on port 22 until I changed the port number. Now none!

    Also, I highly recommend turning off root logins to the server, and only allowing logins from a regular user.
    1 person likes this.
  4. camp0

    camp0 Guest


    As rstanley say, change the port is a good idea.

    Did you check your iptables rules?
  5. CptCharis

    CptCharis Member

    Feb 27, 2018
    Likes Received:

Share This Page