How to install gitolite3 on ubuntu server LTS 14

Musa Haidari

I am trying to install Gitolite3 on Ubuntu server LTS 14 x64, using the git docs.

First I created a user called git as :

sudo adduser \
--system --shell /bin/bash --gecos\ 
'Git SCM' --group --disabled-password git
Adding system user `git' (UID 120) ...
Adding new group `git' (GID 129) ...
Adding new user `git' (UID 120) with group `git' ...
Creating home directory `/home/git' ...

Then I generated the keys:

wdd@ubuntu-server:~$ ssh-keygen -t rsa
Generating public/private rsa key pair.
Enter file in which to save the key (/home/wdd/.ssh/id_rsa):
Enter passphrase (empty for no passphrase):
Enter same passphrase again:
Your identification has been saved in /home/wdd/.ssh/id_rsa.
Your public key has been saved in /home/wdd/.ssh/id_rsa.pub.
The key fingerprint is:
24:76:b9:d1:15:63:71:00:5b:73:96:29:e2:be:4d:63 wdd@ubuntu-server
The key's randomart image is:
+--[ RSA 2048]----+
|          ..X++o |
|         o.=.*o  |
|      o =.o. .   |
|     . + o.      |
|        S.       |
|          . E    |
|           = .   |
|          . .    |
|                 |
+-----------------+

Then executed the following commands:

$ git clone git://github.com/sitaramc/gitolite
$ gitolite/install -ln
    # assumes $HOME/bin exists and is in your $PATH
$ gitolite setup -pk $HOME/.ssh/auhtroized_keys

And this should be the default setting of the gitolite should be ok.

So I go on my windows client machine and want to clone the gitolite-admin repo by:

git clone git@gitserver:gitolite-admin

But it asks me for password,

wdd@MUSAHAIDARI-PC /c/Users/wdd
$ git clone git@gitserver:gitolite-admin
Cloning into 'gitolite-admin'...
git@gitserver's password:

Here I think we are not supposed to be asked for password, if so what is the password? Since I have not set any password.

I need to mention that I could SSH without password from my PC to Linux-server

Musa Haidari

I got the solution to the problem. It seemed that git could not find the private keys to login, so I created ~/.ssh/config containing:

Host gitbox
    User git
    Hostname 192.168.0.103
    Port 22
    IdentityFile ~/.ssh/gitolite

Of course you need to change the credentials. Then gitbox is used for loggin in credentials.

 git clone gitbox:gitolite-admin

The problem is solved. Also please keep in mind for each new user, a new entry in this file will be created to link the key files.

Collected from the Internet

Please contact [email protected] to delete if infringement.

edited at
0

Comments

0 comments
Login to comment

Related

From Dev

How do I install Muvizu on Ubuntu 14,04 LTS?

From Dev

Install Ubuntu 14 LTS next to windows 10

From Dev

How to install Teamspeak 3 on Ubuntu 14.04 LTS

From Dev

How to install zpanel 10.1.1 for Ubuntu server 12.04 LTS

From Dev

How to install zpanel 10.1.1 for Ubuntu server 12.04 LTS

From Dev

how to install phpmyadmin in Ubuntu server 18.04.1 LTS Bionic?

From Dev

How to install Dropbox on Ubuntu 14 Server [GUI-less]?

From Dev

How to change repositories location in gitolite3

From Dev

How to install ubuntu 12.04 LTS?

From Dev

How to install ubuntu 12.04 LTS?

From Dev

How to install uTorrent 14 + Ubuntu

From Dev

Trying to install Varnish on Ubuntu 14.04 server LTS

From Dev

Install amdgpu drivers on Ubuntu Server 16.04.3 LTS

From Dev

how do I install Aptana Studio 3 in Ubuntu 14.04 LTS?

From Dev

how do I install Aptana Studio 3 in Ubuntu 14.04 LTS?

From Dev

How to install pip for python 3 in ubuntu 12.04 LTS

From Dev

How to install g3log library in ubuntu 18.04 LTS?

From Dev

How to install pip for python 3 in ubuntu 12.04 LTS

From Dev

Install Ubuntu ARM LTS on a HP Chromebook 14 G3 (Tegra K1, nyan_blaze)

From Dev

How to Install apropraite Eclipse on ubuntu 12.04 LTS?

From Dev

How to install Grails on Linux Ubuntu LTS?

From Dev

How to install dotnet SDK on Ubuntu 16.04 LTS

From Dev

How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS?

From Dev

How to install Juniper VPN on Ubuntu 14.04 LTS?

From Dev

How to install Yahoo Messenger on Ubuntu 12.04 LTS?

From Dev

How to install Concorde in Ubuntu 14.04 LTS?

From Dev

How to install LXQt DE in Ubuntu 14.04 LTS?

From Dev

How to install themes on Ubuntu 14.04 LTS (Gnome)

From Dev

How to install VidyoDesktop on Ubuntu 16.04 LTS?

Related Related

  1. 1

    How do I install Muvizu on Ubuntu 14,04 LTS?

  2. 2

    Install Ubuntu 14 LTS next to windows 10

  3. 3

    How to install Teamspeak 3 on Ubuntu 14.04 LTS

  4. 4

    How to install zpanel 10.1.1 for Ubuntu server 12.04 LTS

  5. 5

    How to install zpanel 10.1.1 for Ubuntu server 12.04 LTS

  6. 6

    how to install phpmyadmin in Ubuntu server 18.04.1 LTS Bionic?

  7. 7

    How to install Dropbox on Ubuntu 14 Server [GUI-less]?

  8. 8

    How to change repositories location in gitolite3

  9. 9

    How to install ubuntu 12.04 LTS?

  10. 10

    How to install ubuntu 12.04 LTS?

  11. 11

    How to install uTorrent 14 + Ubuntu

  12. 12

    Trying to install Varnish on Ubuntu 14.04 server LTS

  13. 13

    Install amdgpu drivers on Ubuntu Server 16.04.3 LTS

  14. 14

    how do I install Aptana Studio 3 in Ubuntu 14.04 LTS?

  15. 15

    how do I install Aptana Studio 3 in Ubuntu 14.04 LTS?

  16. 16

    How to install pip for python 3 in ubuntu 12.04 LTS

  17. 17

    How to install g3log library in ubuntu 18.04 LTS?

  18. 18

    How to install pip for python 3 in ubuntu 12.04 LTS

  19. 19

    Install Ubuntu ARM LTS on a HP Chromebook 14 G3 (Tegra K1, nyan_blaze)

  20. 20

    How to Install apropraite Eclipse on ubuntu 12.04 LTS?

  21. 21

    How to install Grails on Linux Ubuntu LTS?

  22. 22

    How to install dotnet SDK on Ubuntu 16.04 LTS

  23. 23

    How to install Tomcat 7.0.42 on Ubuntu 12.04.3 LTS?

  24. 24

    How to install Juniper VPN on Ubuntu 14.04 LTS?

  25. 25

    How to install Yahoo Messenger on Ubuntu 12.04 LTS?

  26. 26

    How to install Concorde in Ubuntu 14.04 LTS?

  27. 27

    How to install LXQt DE in Ubuntu 14.04 LTS?

  28. 28

    How to install themes on Ubuntu 14.04 LTS (Gnome)

  29. 29

    How to install VidyoDesktop on Ubuntu 16.04 LTS?

HotTag

Archive