正如主题所说,我突然无法再登录了。我尝试了以下操作:
- 回到 5 天前的备份
- 在本地更改我的密钥的权限
- 已删除已知主机
- 这是使用 -vvv 时的日志
正如主题所说,我突然无法再登录了。我尝试了以下操作:
回到 5 天前的备份在本地更改我的密钥的权限已删除的已知主机这是使用 -vvv 时的日志
OpenSSH7.4p1, LibreSSL 2.5.0
debug1: Reading configuration data /etc/ssh/sshconfig
debug2: resolving "" 1526
debug2: sshconnectdirect: needpriv 0
debug1: Connecting to [ 1526.
debug1: Connection established.
debug1: identity file /Users/flowen/.ssh/idrsa type 1
debug1: keyloadpublic: No such file or directory
debug1: identity file /Users/flowen/.ssh/idrsa-cert type -1
debug1: Enabling compatibility mode for protocol 2.0
debug1: Local version string SSH-2.0-OpenSSH7.4
debug1: Remote protocol version 2.0, remote software version OpenSSH6.6.1p1 Ubuntu-2ubuntu2.8
debug1: match: OpenSSH6.6.1p1 Ubuntu-2ubuntu2.8 pat OpenSSH6.6.1* compat 0x04000000
debug2: fd 3 setting ONONBLOCK
debug1: Authenticating to :1 as 'fff'
debug3: puthostport: []:
debug3: hostkeysforeach: reading file "/Users/flowen/.ssh/knownhosts"
debug3: recordhostkey: found key type RSA in file /Users/flowen/.ssh/knownhosts:16
debug3: recordhostkey: found key type ECDSA in file /Users/flowen/.ssh/knownhosts:27
debug3: loadhostkeys: loaded 2 keys from []:
debug3: orderhostkeyalgs: prefer hostkeyalgs: [email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa
debug3: send packet: type 20
debug1: SSH2MSGKEXINIT sent
debug3: receive packet: type 20
debug1: SSH2MSGKEXINIT received
debug2: local client KEXINIT proposal
debug2: KEX algorithms: curve25519-sha256,[email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group16-sha512,diffie-hellman-group18-sha512,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha256,diffie-hellman-group14-sha1,ext-info-c
debug2: host key algorithms: [email protected],[email protected],[email protected],[email protected],ecdsa-sha2-nistp256,ecdsa-sha2-nistp384,ecdsa-sha2-nistp521,rsa-sha2-512,rsa-sha2-256,ssh-rsa,[email protected],ssh-ed25519
debug2: ciphers ctos: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc
debug2: ciphers stoc: [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected],aes128-cbc,aes192-cbc,aes256-cbc
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-sha1
debug2: compression ctos: none,[email protected],zlib
debug2: compression stoc: none,[email protected],zlib
debug2: languages ctos:
debug2: languages stoc:
debug2: firstkexfollows 0
debug2: reserved 0
debug2: peer server KEXINIT proposal
debug2: KEX algorithms: [email protected],ecdh-sha2-nistp256,ecdh-sha2-nistp384,ecdh-sha2-nistp521,diffie-hellman-group-exchange-sha256,diffie-hellman-group-exchange-sha1,diffie-hellman-group14-sha1,diffie-hellman-group1-sha1
debug2: host key algorithms: ssh-rsa,ssh-dss,ecdsa-sha2-nistp256
debug2: ciphers ctos: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[email protected],[email protected],[email protected],aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: ciphers stoc: aes128-ctr,aes192-ctr,aes256-ctr,arcfour256,arcfour128,[email protected],[email protected],[email protected],aes128-cbc,3des-cbc,blowfish-cbc,cast128-cbc,aes192-cbc,aes256-cbc,arcfour,[email protected]
debug2: MACs ctos: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-sha1,[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: MACs stoc: [email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],[email protected],hmac-md5,hmac-sha1,[email protected],[email protected],hmac-sha2-256,hmac-sha2-512,hmac-ripemd160,[email protected],hmac-sha1-96,hmac-md5-96
debug2: compression ctos: none,[email protected]
debug2: compression stoc: none,[email protected]
debug2: languages ctos:
debug2: languages stoc:
debug2: firstkexfollows 0
debug2: reserved 0
debug1: kex: algorithm: [email protected]
debug1: kex: host key algorithm: ecdsa-sha2-nistp256
debug1: kex: server->client cipher: [email protected] MAC: <implicit> compression: none
debug1: kex: client->server cipher: [email protected] MAC: <implicit> compression: none
debug3: send packet: type 30
debug1: expecting SSH2MSGKEXECDHREPLY
debug3: receive packet: type 31
debug1: Server host key: ecdsa-sha2-nistp256 SHA256:67niY4MSlwyf58cvFVU3nTP/7S9jYU/b+7/8IFPJNiI
debug3: puthostport: []:
debug3: puthostport: []:
debug3: hostkeysforeach: reading file "/Users/flowen/.ssh/knownhosts"
debug3: recordhostkey: found key type RSA in file /Users/flowen/.ssh/knownhosts:16
debug3: recordhostkey: found key type ECDSA in file /Users/flowen/.ssh/knownhosts:27
debug3: loadhostkeys: loaded 2 keys from []:
debug3: hostkeysforeach: reading file "/Users/flowen/.ssh/knownhosts"
debug3: recordhostkey: found key type RSA in file /Users/flowen/.ssh/knownhosts:16
debug3: recordhostkey: found key type ECDSA in file /Users/flowen/.ssh/knownhosts:27
debug3: loadhostkeys: loaded 2 keys from []:
debug1: Host '[]:' is known and matches the ECDSA host key.
debug1: Found key in /Users/flowen/.ssh/knownhosts:27
debug3: send packet: type 21
debug2: setnewkeys: mode 1
debug1: rekey after 134217728 blocks
debug1: SSH2MSGNEWKEYS sent
debug1: expecting SSH2MSGNEWKEYS
debug3: receive packet: type 21
debug1: SSH2MSGNEWKEYS received
debug2: setnewkeys: mode 0
debug1: rekey after 134217728 blocks
debug2: key: /Users/flowen/.ssh/idrsa (0x7f8a2b500cb0), explicit
debug3: send packet: type 5
debug3: receive packet: type 6
debug2: serviceaccept: ssh-userauth
debug1: SSH2MSGSERVICEACCEPT received
debug3: send packet: type 50
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug3: start over, passed a different list publickey,password
debug3: preferred publickey,keyboard-interactive,password
debug3: authmethodlookup publickey
debug3: remaining preferred: keyboard-interactive,password
debug3: authmethodisenabled publickey
debug1: Next authentication method: publickey
debug1: Offering RSA public key: /Users/flowen/.ssh/idrsa
debug3: sendpubkeytest
debug3: send packet: type 50
debug2: we sent a publickey packet, wait for reply
debug3: receive packet: type 51
debug1: Authentications that can continue: publickey,password
debug2: we did not send a packet, disable method
debug3: authmethodlookup password
debug3: remaining preferred: ,password
debug3: authmethodisenabled password
debug1: Next authentication method: password
fff@'s:
答案1
所以一个朋友告诉我我可以用 root 用户从控制台登录。之后我就能修复所有问题了!