
我的 ssh 伺服器在連接埠 2224 上運行。
bash-3.2# /etc/init.d/sshd2 status
openssh-daemon (pid 19737) is running...
bash-3.2# nmap localhost
Starting Nmap 4.11 ( http://www.insecure.org/nmap/ ) at 2012-09-07 05:14 IST
mass_dns: warning: Unable to determine any DNS servers. Reverse DNS is disabled.
Interesting ports on telnets.nith.ac.in (127.0.0.1):
Not shown: 1671 closed ports
PORT STATE SERVICE
22/tcp open ssh
25/tcp open smtp
80/tcp open http
111/tcp open rpcbind
443/tcp open https
631/tcp open ipp
646/tcp open unknown
3306/tcp open mysql
8443/tcp open https-alt
bash-3.2# netstat -nap |grep 2224
tcp 0 0 0.0.0.0:2224 0.0.0.0:* LISTEN 19737/sshd2
答案1
nmap
實際上預設僅掃描數千個“最常見”連接埠。顯然,連接埠 2224 不符合要求。-p
如果您想掃描特定範圍的端口,請查看該選項。