我有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