git clone through ssh returns Permission denied (publickey,password)
11,881
Problem was fixed. I added
Host *
ForwardAgent yes
to /etc/ssh/ssh_config
![gayavat](https://i.stack.imgur.com/QQ2rK.gif?s=256&g=1)
Comments
-
gayavat about 2 years
I have production_server and git_repo_server, git_repo_server .ssh/authorized keys have production user id_rsa.pub. When I ssh to production_server and make git clone - it works fine, don't ask any password. When I try to clone git repo to production_server on my local mashine using ssh I see:
Permission denied, please try again. Permission denied (publickey,password).
It looks like ssh should be configured to send commands to remote server. But I don't know how to do it. Thanks for any help!