h3c设备做路由,sftp时报Couldn't read packet: Connection reset by peer错误的一种解决办法

sftp服务器为了安全,更换了监听端口,sftp客户端连接服务器时报如下错误:


[root@iZ2zeezw67v09s8gw1zfotZ ~]# sftp [email protected] -p9022

ssh_exchange_identification: Connection closed by remote host

Couldn't read packet: Connection reset by peer


经过各种分析排查,发现h3c路由设备对sftp参数位置或参数大小写敏感导致


通过以下命令,顺利连接sftp服务器,问题解决。

[root@iZ2zeezw67v09s8gw1zfotZ ~]# sftp -P9022 [email protected]
[email protected]'s password: 


你可能感兴趣的:(h3c设备做路由,sftp时报Couldn't read packet: Connection reset by peer错误的一种解决办法)