linux ssh 连接主机时出错

linux ssh 连接主机时出错

我最近在 godaddy 上买了一个主机,一切都运行良好,直到我开始觉得总是需要输入密码很麻烦,于是决定使用 id_rsa 来自动进行身份验证。所以我按照教程操作,rsa 2048删除了 .ssh 目录中的所有文件,然后生成了密钥,但当我意识到必须这样做时,它却因ssh-copy-id这个错误而断开了我的连接ssh_exchange_identification: read: Connection reset by peer

从那天起,我无法再连接到我的远程主机,并出现此错误:

debug1: Reading configuration data /etc/ssh/ssh_config
debug1: /etc/ssh/ssh_config line 19: Applying options for *
debug1: Connecting to <host> [<ip>] port 22.
debug1: Connection established.
debug1: identity file /home/jasha/.ssh/id_rsa type 1
debug1: identity file /home/jasha/.ssh/id_rsa-cert type -1
debug1: identity file /home/jasha/.ssh/id_dsa type 2
debug1: identity file /home/jasha/.ssh/id_dsa-cert type -1
debug1: identity file /home/jasha/.ssh/id_ecdsa type -1
debug1: identity file /home/jasha/.ssh/id_ecdsa-cert type -1
debug1: identity file /home/jasha/.ssh/id_ed25519 type -1
debug1: identity file /home/jasha/.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

过去 24 小时我一直在寻找解决方案,但毫无用处,请帮忙

答案1

您是否从 GoDaddy 购买了 SSL 证书,然后阅读了有关如何为您的特定服务器安装该证书的教程?看来您根本没有正确安装 SSL 证书。

相关内容