User Tools

Site Tools


linux:sysadmin

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
linux:sysadmin [2020/07/24 13:34]
mstraub [Check Open Ports & Connections]
linux:sysadmin [2020/08/20 11:59]
mstraub [Check Open Ports & Connections]
Line 686: Line 686:
 nmap localhost ​      # print open ports on current machine (only a selection of common ports) nmap localhost ​      # print open ports on current machine (only a selection of common ports)
 nmap -p 1-9999 host  # print open ports on a host (with a defined port range) nmap -p 1-9999 host  # print open ports on a host (with a defined port range)
 +nmap -Pn -p 1-9999 host  # as above, but skip host discovery (helpful if above probe fails) ​
 nmap -A -T4 host     # print open ports with enabled version detection (-A) and don't wait too long (-T4) nmap -A -T4 host     # print open ports with enabled version detection (-A) and don't wait too long (-T4)
 </​code>​ </​code>​
linux/sysadmin.txt ยท Last modified: 2020/08/20 11:59 by mstraub