reynierpm at gmail.com
2016-Aug-04 23:36 UTC
[CentOS] 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 at 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>
Monty Shinn
2016-Aug-04 23:52 UTC
[CentOS] 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 <ipaddr> 22 4. run nmap against the ipaddress to verify port 22 is seen. Hope this helps. Regards, Monty On 08/04/2016 06:36 PM, reynierpm at gmail.com wrote:> 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 at 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> > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos
reynierpm at gmail.com
2016-Aug-05 00:05 UTC
[CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server
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 at 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> On Thu, Aug 4, 2016 at 7:52 PM, Monty Shinn <monty.shinn.gm at gmail.com> wrote:> 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 <ipaddr> 22 > > 4. run nmap against the ipaddress to verify port 22 is seen. > > Hope this helps. > > Regards, > > Monty > > > On 08/04/2016 06:36 PM, reynierpm at gmail.com wrote: > >> 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 at 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> >> _______________________________________________ >> CentOS mailing list >> CentOS at centos.org >> https://lists.centos.org/mailman/listinfo/centos >> > > _______________________________________________ > CentOS mailing list > CentOS at centos.org > https://lists.centos.org/mailman/listinfo/centos >
Tony Mountifield
2016-Aug-05 10:24 UTC
[CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server
In article <f1ccc75a-62b5-b7a5-67da-371a281271f0 at gmail.com>, Monty Shinn <monty.shinn.gm at gmail.com> wrote:> A few things you might try: > > 1. Verify ssh is listening: > > netstat -antp | grep :22 | grep -i listennetstat -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 -- Tony Mountifield Work: tony at softins.co.uk - http://www.softins.co.uk Play: tony at mountifield.org - http://tony.mountifield.org