我ssh
目前遇到了命令问题。之前,它运行正常,但现在当我尝试执行相同的命令时,它提示“ssh_exchange_identification: read: Connection reset by peer.
我现在如何访问网络帐户?”
ssh -v
输出:
OpenSSH_6.6.1, OpenSSL 1.0.1f 6 Jan 2014
debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to iiit.ac.in [10.4.3.20]
debug1: Connection established.
debug1: key_load_file: read from key file /home/usr/.ssh/id_rsa failed: Is a directory
debug1: identity file /home/usr/.ssh/id_rsa type -1
debug1: identity file /home/usr/.ssh/id_rsa-cert type -1
debug1: identity file /home/usr/.ssh/id_dsa type -1
debug1: identity file /home/usr/.ssh/id_dsa-cert type -1
debug1: identity file /home/usr/.ssh/id_ecdsa type -1
debug1: identity file /home/usr/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/usr/.ssh/id_ed25519 type -1
debug1: identity file /home/usr/.ssh/id_ed25519-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.6.1p1 Ubuntu-2ubuntu2
ssh_exchange_identification: read: Connection reset by peer
答案1
这个问题有一个解决办法。我只是分享我的经验。检查你的服务器的路由。也许是路由不好或者某个默认网关导致了这个问题。
我的 CenOS 服务器上也遇到了同样的问题,我尝试从 Ubuntu 连接它。我发现服务器有 2 个默认网关,当我删除第二个网关时,问题解决了。