我有production_server和git_repo_server, git_repo_server .ssh /授權的鍵有生產用戶id_rsa.pub。 當我ssh到production_server並使git克隆 - 它工作正常,不要問任何密碼。 當我嘗試克隆git倉庫使用ssh上我的本地mashine到production_server我看到:git克隆通過SSH返回權限被拒絕(公鑰,密碼)
Permission denied, please try again.
Permission denied (publickey,password).
它看起來像SSH應配置命令發送到遠程服務器。但我不知道該怎麼做。謝謝你的幫助!
讀作/無功/日誌/ auth.log',它可能會有所幫助。 – Reactormonk 2012-04-23 10:38:00
我看到:4月23日10:45:01 dev sshd [14635]:接受公共密鑰爲git從........ Apr 23 10:45:15 dev sshd [14662]:失敗的密碼從端口37775 ssh2 –
gayavat
2012-04-23 10:48:52
也就是說公鑰是正確的,但密碼失敗。但它看起來像密碼不應該被要求公鑰添加到authorized_keys – gayavat 2012-04-23 10:50:41