Kumar
Kumar

Reputation: 59

GIT Issue where git clone asks for password

I have generated ssh key and PUB key placed in keydir of the gitoliteèadmin repo.
When I clone the Repo to my local it asks for password.
Already existing users are able to clone the Repo.

Authorised_keys file is not getting updated when changes done in keydir.
As push at keydir shows everything up to date.

How to make authorised_keys (under ~git/.ssh) file to update automatically as earlier?
It should trigger automatically when we update PUB key under keydir.

Upvotes: 1

Views: 466

Answers (1)

VonC
VonC

Reputation: 1323115

keydir means you are using gitolite.

More specifically, you have cloned the gitolite_admin repo, and try to declare a new user.

As push at keydir shows everything up to date

Check your git status: you need to add and commit your changes (ie your new public key file in the keydir folder) before trying to push.

As baron adds in the comments, ssh expects to validate a public key in ~/.ssh/authorized_keys, not authorised_keys.
So if it is not a typo in the question, fix the file name.

Upvotes: 2

Related Questions