最新消息:20210816 当前crifan.com域名已被污染,为防止失联,请关注(页面右下角的)公众号

[记录]mac用去使用telnet命令去测试连通性

Mac crifan 13252浏览 0评论

搜telnet的语法:

Telnet 命令
telnet用法 测试端口号_百度经验
每天一个linux命令(58):telnet命令 – peida – 博客园
telnet 命令使用详解-quyuanbo103-ChinaUnix博客
telnet [-a][-e escape char][-f log file][-l user][-t term][host [port]]
登录命令:telnet HOST [PORT] 例如:telnet 61.152.158.132 23(默认端口)

然后自己去试试:

licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet --help
telnet: illegal option -- -
usage: telnet [-4] [-6] [-8] [-E] [-K] [-L] [-N] [-S tos] [-X atype] [-c] [-d]
[-e char] [-k realm] [-l user] [-f/-F] [-n tracefile] [-r] [-s src_addr] [-u] [-P policy] [host-name [port]]
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234:5000
Trying 202.102.110.203...
^C
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234 5000
Trying 192.168.1.234...
telnet: connect to address 192.168.1.234: Connection refused
telnet: Unable to connect to remote host
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234
Trying 192.168.1.234...
telnet: connect to address 192.168.1.234: Connection refused
telnet: Unable to connect to remote host
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234 5000
Trying 192.168.1.234...
^C
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234 5000
Trying 192.168.1.234...
telnet: connect to address 192.168.1.234: Connection refused
telnet: Unable to connect to remote host
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$ telnet 192.168.1.234 5000
Trying 192.168.1.234...
telnet: connect to address 192.168.1.234: Connection refused
telnet: Unable to connect to remote host
licrifandeMacBook-Pro:SwiftXMPP.xcodeproj crifan$

 

结果:

暂时连不通。。

转载请注明:在路上 » [记录]mac用去使用telnet命令去测试连通性

发表我的评论
取消评论

表情

Hi,您需要填写昵称和邮箱!

  • 昵称 (必填)
  • 邮箱 (必填)
  • 网址
82 queries in 0.175 seconds, using 22.10MB memory