SSH not working on fresh CentOS7 box

Posted on 2014-08-14
Last Modified: 2014-08-15
Per below, SSH connections on port 22 are refused.  The box is running on my LAN at  What am I missing?  

I've turned off all firewalls (firewalld, iptables), confirmed sshd is running, confirmed port 22 is listening (this is a brand new fresh install of CentOS7.  No changes to any config files.)steps
Question by:Geoff Millikan
    LVL 48

    Assisted Solution

    What does

    ip a


    Also, what is the output of

    ssh -v root@
    LVL 13

    Expert Comment

    any error in logs ? /var/log/secure ???

    Please check there.. also check whether root is allowed to login via ssh under sshd config file.


    Author Comment

    by:Geoff Millikan
    Results of Tintin's questions

    Author Comment

    by:Geoff Millikan
    SAndy:  /var/log/secure only shows the console login by root, doesn't seem to show the ssh login error: No SSHD errors in /var/log/secure

    Author Comment

    by:Geoff Millikan
    /etc/ssh/ directory listing

    Author Comment

    by:Geoff Millikan
    Here's the sshd_config file:
    cat filecatmoremoreScreenShot022.pngScreenShot023.png
    LVL 27

    Accepted Solution

    Next time you should cut and paste the text into experts exchange, it's a bit easier to work with than the images.  The output of your ip a command shows the standard localhost ( connection as  well as an ethernet (ens32) set to  Which system are you connecting to?  Are you connecting to a remote system at  The images suggest that you're configuring ssh for the local system with an IP address of  That's the IP address you should be using to test.

    If you are trying to connect to, then you need to configure ssh on that system.

    Featured Post

    Why You Should Analyze Threat Actor TTPs

    After years of analyzing threat actor behavior, it’s become clear that at any given time there are specific tactics, techniques, and procedures (TTPs) that are particularly prevalent. By analyzing and understanding these TTPs, you can dramatically enhance your security program.

    Join & Write a Comment

    Little introduction about CP: CP is a command on linux that use to copy files and folder from one location to another location. Example usage of CP as follow: cp /myfoder /pathto/destination/folder/ cp abc.tar.gz /pathto/destination/folder/ab…
    We all know how boring and exhausting it is to transfer huge web projects developed locally to a webserver simply via FTP. The File Transfer Protocol is a really nice solution if you need to transfer small amounts of files, but if you're plannin…
    Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
    Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:

    755 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    17 Experts available now in Live!

    Get 1:1 Help Now