I created a ssh-key on my local computer and added the public key to my git-account.
Works like a charm.
I am not asked to type my username+password when I clone any repository.
Next, I ssh into my server and created a ssh-key the same way and added the public key to git-account as well.
I did this because I just want to clone/pull from my repository so I have the most stable version from my git-repo on my server.
But when I clone the repository to get it on my server, I am asked for username+password.
What did i wrong or do have to do other stuff?
It can be because:
git clone ssh://
does not find id_rsa
/ id_rsa.pub
in $HOME/.ssh
: check you user account, and check if the rights on the $HOME
and $HOME/.ssh
and the key files themselves are correct . id_rsa.pub
) has been incorrectly copied to your server git account profile (for instance, with a newline in it)
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.