• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 579
  • Last Modified:

SSH not working on fresh CentOS7 box

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
Geoff Millikan
Geoff Millikan
2 Solutions
What does

ip a


Also, what is the output of

ssh -v root@
any error in logs ? /var/log/secure ???

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

Geoff MillikanAuthor Commented:
Results of Tintin's questions
Concerto Cloud for Software Providers & ISVs

Can Concerto Cloud Services help you focus on evolving your application offerings, while delivering the best cloud experience to your customers? From DevOps to revenue models and customer support, the answer is yes!

Learn how Concerto can help you.

Geoff MillikanAuthor Commented:
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
Geoff MillikanAuthor Commented:
/etc/ssh/ directory listing
Geoff MillikanAuthor Commented:
Here's the sshd_config file:
cat filecatmoremoreScreenShot022.pngScreenShot023.png
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

Free recovery tool for Microsoft Active Directory

Veeam Explorer for Microsoft Active Directory provides fast and reliable object-level recovery for Active Directory from a single-pass, agentless backup or storage snapshot — without the need to restore an entire virtual machine or use third-party tools.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now