Ubuntu ssh_交换_标识:读取:对等方重置连接

Ubuntu ssh_交换_标识:读取:对等方重置连接,ubuntu,ssh,Ubuntu,Ssh,无法连接到远程服务器 ssh_exchange_identification: read: Connection reset by peer 我如何解决这个问题 OpenSSH_7.1p2, OpenSSL 1.0.2g 1 Mar 2016 debug1: Reading configuration data /etc/ssh/ssh_config debug2: ssh_connect: needpriv 0 debug1: Connecting to ***server ip*** p

无法连接到远程服务器

ssh_exchange_identification: read: Connection reset by peer
我如何解决这个问题

OpenSSH_7.1p2, OpenSSL 1.0.2g  1 Mar 2016
debug1: Reading configuration data /etc/ssh/ssh_config
debug2: ssh_connect: needpriv 0
debug1: Connecting to ***server ip*** port 22.
debug1: Connection established.
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_rsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_rsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_dsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_dsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_ecdsa type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_ecdsa-cert type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_ed25519 type -1
debug1: key_load_public: No such file or directory
debug1: identity file /c/Users/Alex/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_7.1
ssh_exchange_identification: read: Connection reset by peer

我曾经遇到过这个问题,我尝试了人们建议的任何方法,但是在一些digins发现我的vps ssh端口没有设置默认的22,而是设置了一个端口2280

因此,为了在ssh期间解决这个问题,我必须添加一个端口标志

ssh root@ipaddress -p 2280 //in my case port is 2280 yours may be different

另外,如果使用putty将端口omn添加到端口文本框中,只需重新启动要ssh的服务器即可。这对我来说很有效,以前我也面临同样的问题。

关于这一点,你能提供哪些其他细节?远程系统是什么样的系统?远程系统是否运行ssh守护程序?在您尝试连接到远程系统的整个过程中,远程系统是否已启动、运行且可在网络上访问?使用
ssh-vvv
参数显示更多信息,并编辑您的帖子请hi@yujiao检查日志,让我知道如何修复此问题。谢谢。检查一下,还是一样的。谢谢