我無法登入伺服器。我不斷收到此錯誤:
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
。
這是我以 verbose 運行時得到的結果:
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
即使我確定我的密碼是正確的。
有人知道發生了什麼事嗎?