ssh 用rsa和dsa无法验证的问题
贴段日志,有高人帮忙看看么
密钥是客户端生成后拷贝过去的
home .ssh key文件目录权限也检查了
为啥验证通不过呢
:57:30 app sshd[20498]: debug3: mm_request_send entering: type 24
May 9 22:57:30 app sshd[20498]: debug3: mm_getpwnamallow: waiting for MONITOR_ANS_PWNAM
May 9 22:57:30 app sshd[20497]: debug3: monitor_read: checking request 24
May 9 22:57:30 app sshd[20498]: debug3: mm_request_receive_expect entering: type 25
May 9 22:57:30 app sshd[20497]: debug3: mm_answer_pwnamallow
May 9 22:57:30 app sshd[20498]: debug3: mm_request_receive entering
May 9 22:57:30 app sshd[20497]: debug3: auth_shadow_acctexpired: today 15103 sp_expire -1 days left -15104
May 9 22:57:30 app sshd[20497]: debug3: account expiration disabled
May 9 22:57:30 app sshd[20497]: debug3: mm_answer_pwnamallow: sending MONITOR_ANS_PWNAM: 1
May 9 22:57:30 app sshd[20497]: debug3: mm_request_send entering: type 25
May 9 22:57:31 app sshd[20498]: debug2: input_userauth_request: setting up authctxt for git
May 9 22:57:31 app sshd[20497]: debug2: monitor_read: 24 used once, disabling now
May 9 22:57:31 app sshd[20498]: debug3: mm_inform_authserv entering
May 9 22:57:31 app sshd[20497]: debug3: mm_request_receive entering
May 9 22:57:31 app sshd[20498]: debug3: mm_request_send entering: type 20
May 9 22:57:31 app sshd[20498]: debug3: mm_inform_authrole entering
May 9 22:57:31 app sshd[20497]: debug3: monitor_read: checking request 20
May 9 22:57:31 app sshd[20498]: debug3: mm_request_send entering: type 21
May 9 22:57:31 app sshd[20497]: debug3: mm_answer_authserv: service=ssh-connection, style=
May 9 22:57:31 app sshd[20498]: debug2: input_userauth_request: try method none
May 9 22:57:31 app sshd[20497]: debug2: monitor_read: 20 used once, disabling now
May 9 22:57:31 app sshd[20498]: debug1: userauth-request for user git service ssh-connection method publickey
May 9 22:57:31 app sshd[20497]: debug3: mm_request_receive entering
May 9 22:57:31 app sshd[20498]: debug1: attempt 1 failures 1
May 9 22:57:31 app sshd[20497]: debug3: monitor_read: checking request 21
May 9 22:57:31 app sshd[20498]: debug2: input_userauth_request: try method publickey
May 9 22:57:31 app sshd[20497]: debug3: mm_answer_authrole: role=
May 9 22:57:31 app sshd[20498]: debug1: test whether pkalg/pkblob are acceptable
May 9 22:57:31 app sshd[20497]: debug2: monitor_read: 21 used once, disabling now
May 9 22:57:31 app sshd[20498]: debug3: mm_key_allowed entering
May 9 22:57:31 app sshd[20497]: debug3: mm_request_receive entering
May 9 22:57:31 app sshd[20498]: debug3: mm_request_send entering: type 38
May 9 22:57:31 app sshd[20498]: debug3: mm_key_allowed: waiting for MONITOR_ANS_KEYALLOWED
May 9 22:57:31 app sshd[20497]: debug3: monitor_read: checking request 38
May 9 22:57:31 app sshd[20498]: debug3: mm_request_receive_expect entering: type 39
May 9 22:57:31 app sshd[20497]: debug3: mm_answer_keyallowed entering
May 9 22:57:31 app sshd[20498]: debug3: mm_request_receive entering
May 9 22:57:31 app sshd[20497]: debug3: mm_answer_keyallowed: key_from_blob: 0x94a0008
May 9 22:57:31 app sshd[20497]: debug1: temporarily_use_uid: 501/501 (e=0/0)
May 9 22:57:31 app sshd[20497]: debug1: trying public key file /home/git/.ssh/authorized_keys
May 9 22:57:31 app sshd[20497]: debug1: restore_uid: 0/0
May 9 22:57:31 app sshd[20497]: debug1: temporarily_use_uid: 501/501 (e=0/0)
May 9 22:57:31 app sshd[20497]: debug1: trying public key file /home/git/.ssh/authorized_keys2
May 9 22:57:31 app sshd[20497]: debug1: restore_uid: 0/0
May 9 22:57:31 app sshd[20497]: Failed publickey for git from 116.xx.xx.xx port 51943 ssh2
May 9 22:57:31 app sshd[20497]: debug3: mm_answer_keyallowed: key 0x94a0008 is disallowed
May 9 22:57:31 app sshd[20497]: debug3: mm_request_send entering: type 39
May 9 22:57:31 app sshd[20497]: debug3: mm_request_receive entering
May 9 22:57:31 app sshd[20498]: debug2: userauth_pubkey: authenticated 0 pkalg ssh-rsa