debug1: Next authentication method: publickey debug1: Trying private key: /root/.ssh/identity debug3: no such identity: /root/.ssh/identity debug1: Offering public key: /root/.ssh/id_rsa debug3: send_pubkey_test debug2: we sent a publickey packet, wait for reply debug3: Wrote 368 bytes for a total of 1495 debug1: Authentications that can continue: publickey,password debug1: Trying private key: /root/.ssh/id_dsa debug3: no such identity: /root/.ssh/id_dsa debug2: we did not send a packet, disable method debug3: authmethod_lookup password debug3: remaining preferred: ,password debug3: authmethod_is_enabled password debug1: Next authentication method: password
那個正確的密碼也會提示:permission denied(publickey,password,keyboard-interactive)html
ssh -vvv 會有以上錯誤提示。。git
更改 ssh-config 裏面,把前面的#去掉。服務器
RSAAuthentication yesssh
PasswordAuthentication yeside
而後鏈接的時間 直接輸入 ssh server 測試
而不是 ssh username@serverdebug
問題解決,很奇怪哦。。。unix
今天繼續,ssh server git同步的時間會出問題。必須用 ssh username@server日誌
再次試 ssh username@server 依然報錯,server
authentication that can continue keyboard-interactive
猜測多是認證方式不對,ssh_config sshd_config這兩個的配置都應該沒問題的,
查看日誌:
2013.10.25 10:40:54 - input_userauth_request: invalid user administrator
2013.10.25 10:40:54 - Invalid user administrator from 192.168.0.240
2013.10.25 10:40:54 - Login name administrator does not match stored username Administrator
爲何會提示登陸所用的 user administrator 和 存儲在ssh服務器裏面的 user administrator 不匹配呢?奇怪。。
因而乎猜測多是管理員的問題,便建一新賬號git測試。
必定要登陸一下哦。在c盤下面生產 git 文件夾哦。。。
弄完後,就一路成功了。能夠正常訪問了。。。git也能夠正常同步了。。。
難道是管理員的問題?至此搞完,必定要新創建賬號哦。。
參考:
http://superuser.com/questions/543626/ssh-permission-denied-on-correct-password-authentication
http://serverfault.com/questions/55343/cant-get-ssh-public-key-authentication-to-work
http://www.unix.com/aix/164525-ssh-error-permission-denied-publickey-keyboard-interactive.html
http://superuser.com/questions/543626/ssh-permission-denied-on-correct-password-authentication