Re: [CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server

2016-08-05 Thread Tony Mountifield
In article ,
Monty Shinn  wrote:
> A few things you might try:
> 
> 1. Verify ssh is listening:
> 
> netstat -antp | grep :22 | grep -i listen

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
-- 
Tony Mountifield
Work: t...@softins.co.uk - http://www.softins.co.uk
Play: t...@mountifield.org - http://tony.mountifield.org
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server

2016-08-04 Thread reynie...@gmail.com
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: reynie...@gmail.com

[image: Facebook]  [image: Github]
 [image: Google+]
 [image: Twitter]
 [image: LinkedIn]


On Thu, Aug 4, 2016 at 7:52 PM, Monty Shinn 
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  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, reynie...@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: reynie...@gmail.com
>>
>> [image: Facebook]  [image: Github]
>>  [image: Google+]
>>  [image: Twitter]
>>  [image: LinkedIn]
>> 
>> ___
>> CentOS mailing list
>> CentOS@centos.org
>> https://lists.centos.org/mailman/listinfo/centos
>>
>
> ___
> CentOS mailing list
> CentOS@centos.org
> https://lists.centos.org/mailman/listinfo/centos
>
___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


Re: [CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server

2016-08-04 Thread Monty Shinn

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


On 08/04/2016 06:36 PM, reynie...@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: reynie...@gmail.com

[image: Facebook]  [image: Github]
 [image: Google+]
 [image: Twitter]
 [image: LinkedIn]

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos


[CentOS] Can't connect trough SSH to a new fresh CentOS 7 minimal server

2016-08-04 Thread reynie...@gmail.com
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: reynie...@gmail.com

[image: Facebook]  [image: Github]
 [image: Google+]
 [image: Twitter]
 [image: LinkedIn]

___
CentOS mailing list
CentOS@centos.org
https://lists.centos.org/mailman/listinfo/centos