无法使用 ssh 登录服务器

无法使用 ssh 登录服务器

我无法登录服务器。我一直收到此错误:

Received disconnect from 128.238.182.77: 2: Too many authentication failures for bmpasini

我以前也遇到过这种情况,我通过使用解决了这个问题-o PubkeyAuthentication=no,然后我登录并将我的公钥添加到authenticated_keys文件中。直到今天早上一切都运行正常,但现在我一直收到此错误。

我也尝试过IdentitiesOnly=yes,但是没有成功。也试过了ssh-add -D,没有用。

此外,每次我尝试登录时,它都会要求我输入密码,即使我使用指定了私钥-i ~/.ssh/gray17

这是我使用详细运行它时得到的结果:

debug1: Reading configuration data /Users/brunomacedo/.ssh/config
debug1: /Users/brunomacedo/.ssh/config line 13: Applying options for gray17
debug1: Reading configuration data /etc/ssh_config
debug1: /etc/ssh_config line 20: Applying options for *
debug1: /etc/ssh_config line 102: Applying options for *
debug1: Connecting to gray17.poly.edu [128.238.182.77] port 22.
debug1: Connection established.
debug1: identity file /Users/brunomacedo/.ssh/gray17 type 1
debug1: identity file /Users/brunomacedo/.ssh/gray17-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH_6.2
debug1: Remote protocol version 2.0, remote software version OpenSSH_5.3
debug1: match: OpenSSH_5.3 pat OpenSSH_5*
debug1: SSH2_MSG_KEXINIT sent
debug1: SSH2_MSG_KEXINIT received
debug1: kex: server->client aes128-ctr hmac-md5 none
debug1: kex: client->server aes128-ctr hmac-md5 none
debug1: SSH2_MSG_KEX_DH_GEX_REQUEST(1024<1024<8192) sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_GROUP
debug1: SSH2_MSG_KEX_DH_GEX_INIT sent
debug1: expecting SSH2_MSG_KEX_DH_GEX_REPLY
debug1: Server host key: RSA ef:bf:c0:70:d0:bb:93:71:ab:c2:63:75:e6:c2:ea:85
debug1: Host 'gray17.poly.edu' is known and matches the RSA host key.
debug1: Found key in /Users/brunomacedo/.ssh/known_hosts:10
debug1: ssh_rsa_verify: signature correct
debug1: SSH2_MSG_NEWKEYS sent
debug1: expecting SSH2_MSG_NEWKEYS
debug1: SSH2_MSG_NEWKEYS received
debug1: Roaming not allowed by server
debug1: SSH2_MSG_SERVICE_REQUEST sent
debug1: SSH2_MSG_SERVICE_ACCEPT received
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/brunomacedo/.ssh/gray17
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: password
[email protected]'s password:

如果我尝试输入密码,则会失败:

Received disconnect from 128.238.182.77: 2: Too many authentication failures for bmpasini

尽管我确信我的密码是正确的。

有人知道发生了什么事吗?

相关内容