753  
   0
使用ssh工具测试tcp端口是否可达
作者:陈运佳于 2018年04月11日 发布在分类 / 经验案例 / FAQ 下,并于 2018年04月11日 编辑
ssh TCP端口

一、提问

存储设备默认不安装telnet工具,若涉及存储端的的tcp端口检测,需如何使用现有工具检测?

二、解决方法

存储设备默认支持ssh工具,可采用ssh工具测试tcp端口是否可达。

(1)端口不可达的情况:若提升connection refused,则表示端口不大达,需协调客户在防火墙设备开放对应端口;

-bash-4.1# ssh 172.0.120.2 -p 1110 -v
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to 172.0.120.2 [172.0.120.2] port 1110.
debug1: connect to address 172.0.120.2 port 1110: Connection refused
ssh: connect to host 172.0.120.2 port 1110: Connection refused
(2)端口可达情况:若提示Connection established,则表示网络端口可达。

-bash-4.1# ssh csms.macrosan.com -p 80 -v
OpenSSH_5.3p1, OpenSSL 1.0.0-fips 29 Mar 2010
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: Applying options for *
debug1: Connecting to csms.macrosan.com [172.153.254.72] port 80.
debug1: Connection established.
debug1: permanently_set_uid: 0/0
debug1: identity file /root/.ssh/identity type -1
debug1: identity file /root/.ssh/id_rsa type -1
debug1: identity file /root/.ssh/id_dsa type -1
ssh_exchange_identification: Connection closed by remote host


 知识评论当前评论数0

 推荐知识


 访问权限

创建人 陈运佳
文档编辑权限 创建者私有
文档阅读权限 来自分类
分类阅读权限 所有人
分类编辑权限 技术服务部  : 机构     渠道合作伙伴  : 机构     系统管理员 : 人员     
分类审核权限 审核小组  : 岗位    
分类预览权限 审核小组 : 岗位    
分类下载权限 技术服务部  : 机构    
 历史版本

修改日期 修改人 备注
2018-04-11 14:34:40[当前版本] 陈运佳 CREAT

 目录
    宏杉案例知识库-V4.0.1