9

#Linux 如何检查远程端口是否打开

 2 years ago
source link: https://xmanyou.com/linux-check-remote-port-with-nc/
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
7 May 2021 / linux

#Linux 如何检查远程端口是否打开

使用nc命令可以检查远程端口是否打开,用来判断连接是否可用。

nc -zv <address> <port>
  • -z 使用0输入/输出模式,只在扫描通信端口时使用。
  • -v 显示指令执行过程。
nc -zv 192.168.1.12 22
Connection to 192.168.1.12 22 port [tcp/ssh] succeeded!

https://www.runoob.com/linux/linux-comm-nc.html

阿斌

Read more posts by this author.


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK