Git clone with password prompt (multiple users)
I have a virtual machine set up with multiple users. My main users are VM-User and with this account I created another user called "Joe". I cloned the git repository by running loggin in VM-User and everything works fine.
The problem I am facing is that when I try to clone the same repo using loggin on user "Joe" it prompts me for the password for the git server.
git clone git@0.0.0.0:repo.git some_folder
shows it:
git@0.0.0.0 password: (asks me to type in a password)
I created an ssh key for "Joe" and added it to gitosis.
Does anyone know what I am doing wrong?
Thank you in advance:)
SSH debug log:
debug1: Authentications that can continue: publickey,password
debug1: Next authentication method: publickey
debug1: Offering RSA public key: email@example.com
debug1: Authentications that can continue: publickey,password
debug1: Trying private key: /home/joe/.ssh/id_rsa
debug1: Trying private key: /home/joe/.ssh/id_dsa
debug1: Trying private key: /home/joe/.ssh/id_ecdsa
debug1: Next authentication method: password
source to share
I had the same problem. I just hit Enter in response to Enter file in which to save the key (/c/Users/sposada/.ssh/id_rsa):
and I copied id_rsa.pub
and changed the name on the server.
git is trying to get the ssh public key from /home/joe/.ssh/id_rsa
, but you have/home/joe/.ssh/joe
source to share