Solve gitolite problem for asked password every clone or commit after change username


I have gitolite server in Vagrant than run well, suddenly I need to change my host password. Also, I just forgot that already uninstall “openssh-server” yesterday. If you were like me, having this problem which gitolite want we inserting password. Otherwise, we already setup gitolite account with disabled-password, so what kind of password needed ?

First, you should install openssh-server. This is my first mistake! So, let install it by :

1
sudo apt-get install openssh-server

Still got error? Then we go to the next steps :

Re-installing gitolite
You should have backup of everythings just in case. Then we’re already to purge gitosis by :

1
2
sudo apt-get remove –purge gitolite
sudo apt-get install gitolite

To add RSA public key, I suggest you login into gitolite / git account by “sudo su git” or “sudo su gitolite” (depend on your configuration). Then, you add RSA key with “gl-setup “.

Try to REBOOT your server to make everything well changed.


Leave a Reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.