当前位置: 技术问答>linux和unix
ssh 用rsa和dsa无法验证的问题
来源: 互联网 发布时间:2016-11-28
本文导语: 本帖最后由 mooncat2000 于 2011-05-09 23:24:26 编辑 贴段日志,有高人帮忙看看么 密钥是客户端生成后拷贝过去的 home .ssh key文件目录权限也检查了 为啥验证通不过呢 :57:30 app sshd[20498]: debug3: mm_request_send...
密钥是客户端生成后拷贝过去的
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
|
你不会是拿rsa的密钥去和dsa的公钥认证吧? 你采用一种就行了嘛 要么用rsa 要么用dsa试试 不要一起来或者混着来。
csdn又出问题了 老是404
csdn又出问题了 老是404