Huu Phan | Blog Linux operating system | Linux operating system -Blog Huu Phan | www.huuphan.com

This Blog is protected by DMCA.com

huuphan.com. Powered by Blogger.

Checks for open/closed ssh ports using nmap command

In this tutorial, How to checks all ports if they are closed or open and if the current ssh version? Using nmap command. Read man nmap page.

The first, you have install nmap.


For ubuntu
$ sudo apt-get install nmap

For centos
$ sudo yum install nmap

For example, checks for open/closed ports and current ssh version
[[email protected] huuphan.com]$ sudo nmap -sV -p22 --version-all  localhost

The output Checks for open/closed ssh ports using nmap command as below





post new :

Huu Phan | Blog Linux operating system | Huu Phan ~ Zimbra Mail Server,linux,bash script,centos,linux command | www.huuphan.com