Can’t Connect Trough SSH To A New Fresh CentOS 7 Minimal Server
I have installed a new CentOS 7 minimal virtual machine in Vmware Workstation. I have disabled the firewall by running:
*systemctl disable firewalld* => this one for disable it permanently (I
don’t need it since it’s a VM for development)
*systemctl stop firewalld* => this one for stop the service
I have set SELinux to be permissive.
SSH is up and running as the output from: *service sshd status*
But I can’t connect trough SSH, I am missing something?
Thanks in advance
*Reynier Perez Mira*
Phone: (786) 5807572
EMail: reynierpm@gmail.com
[image: Facebook]
3 thoughts on - Can’t Connect Trough SSH To A New Fresh CentOS 7 Minimal Server
A few things you might try:
1. Verify SSH is listening:
netstat -antp | grep :22 | grep -i listen
2. Verify you can SSH locally:
ssh localhost
3. Try to telnet to SSH port:
telnet 22
4. run nmap against the ipaddress to verify port 22 is seen.
Hope this helps.
Regards,
Monty
Ohhh it was my bad, this VM has two interfaces and the one I was trying to reach was down so NEVER it will respond. Anyway thanks for the time
*Reynier Perez Mira*
Phone: (786) 5807572
EMail: reynierpm@gmail.com
[image: Facebook] <https://facebook.com/ReynierPM> [image: Github]
<https://github.com/reypm> [image: Google+]
<https://plus.google.com/u/0/+ReynierP%C3%A9rezMira> [image: Twitter]
<https://twitter.com/reypm> [image: LinkedIn]
<https://www.linkedin.com/in/reynierpm>
In article, Monty Shinn wrote:
netstat -lntp | grep :22
If you give -l instead of -a, it only shows listening sockets.
Just a useful hint – it was ages before I discovered that!
Cheers Tony