简体   繁体   中英

Git - ssh-key on server

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:

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM