使用ssh客户端连接已安装windown11的openSSH SERVER报错如下:
'''
OpenSSH_for_Windows_8.6p1, LibreSSL 3.4.3
debug1: Authenticator provider $SSH_SK_PROVIDER did not resolve; disabling
debug1: Connecting to 192.168.1.5 [192.168.1.5] port 22.
debug1: Connection established.
debug1: identity file C:\Users\Administrator/.ssh/id_rsa type 0
debug1: identity file C:\Users\Administrator/.ssh/id_rsa-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_dsa type -1
debug1: identity file C:\Users\Administrator/.ssh/id_dsa-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ecdsa type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ecdsa-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ecdsa_sk type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ecdsa_sk-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ed25519 type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ed25519-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ed25519_sk type -1
debug1: identity file C:\Users\Administrator/.ssh/id_ed25519_sk-cert type -1
debug1: identity file C:\Users\Administrator/.ssh/id_xmss type -1
debug1: identity file C:\Users\Administrator/.ssh/id_xmss-cert type -1
debug1: Local version string SSH-2.0-OpenSSH_for_Windows_8.6
kex_exchange_identification: read: Connection reset
Connection reset by 192.168.110.165 port 22
'''
并且端口已打开:
通过端口定位程序
最终定位原因是因为vmnat.exe惹祸的。
----很奇怪为啥sshd.exe在service.msc中是可以启动的,并且没有报错。
解决方法:
停止服务VMware NAT Service,然后重启服务sshd。
经验总结:系统开着22端口并不以为着是ssh服务的端口