美文网首页
linux测试端口连接

linux测试端口连接

作者: 暴风鱼 | 来源:发表于2023-07-09 16:05 被阅读0次

使用ssh可以很方便的测试和远程机器的接口连接情况

ssh -v -p 77 1.1.2.1
OpenSSH_9.0p1, OpenSSL 1.1.1q 5 Jul 2022
debug1: Reading configuration data /c/Users/b/.ssh/config
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Connecting to port 77.
debug1: Connection established.
......
建立连接成功,可以连接

ssh -v -p 77 1.1.2.1
OpenSSH_7.4p1, OpenSSL 1.0.2k-fips 26 Jan 2017
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 58: Applying options for *
debug1: Connecting to port 77.
一直停留在连接上没有上面的Connection established.

相关文章

网友评论

      本文标题:linux测试端口连接

      本文链接:https://www.haomeiwen.com/subject/toesudtx.html