Return to site

How to check connectivity between two servers

broken image
broken image

Here server2 is my target host and we are looking for nmap port status ~]# nmap server2 -Pn -p ssh | egrep -io ~]# nmap server2 -Pn -p ssh | egrep -io 'open|closed|filtered' Open means that an application on the target machine is listening for connections/packets on that portĬlosed ports have no application listening on them, though they could open up at any timeįiltered means that a firewall, filter, or other network obstacle is blocking the port so that Nmap cannot tell whether it is open or closed. Here, -Pn Treat all hosts as online - skip host discovery ~]# timeout 5 bash -c ' -PN -p ssh | egrep 'open|closed|filtered'