Efficiently test if a port is open on Linux?

后端 未结 14 1042
面向向阳花
面向向阳花 2020-12-02 04:02

From a bash script how can I quickly find out whether a port 445 is open/listening on a server.

I have tried a couple of options, but I want something q

14条回答
  •  轻奢々
    轻奢々 (楼主)
    2020-12-02 04:15

    nmap is the right tool. Simply use nmap example.com -p 80

    You can use it from local or remote server. It also helps you identify if a firewall is blocking the access.

提交回复
热议问题