setting up my own git server

Bruce Labitt bruce.labitt at myfairpoint.net
Sun Oct 9 14:32:11 EDT 2022


I am trying to accomplish this and am running into a couple of 
problems.  Following the instructions at: 
https://www.linuxfoundation.org/blog/blog/classic-sysadmin-how-to-run-your-own-git-server

Specifically, the command $

cat ~/.ssh/id_rsa.pub | sshgit at remote-server  "mkdir -p ~/.ssh && cat >>  ~/.ssh/authorized_keys"

fails  with the message bash: /home/git/.ssh/authorized_keys: Permission denied

Is this because the user git is not a sudoer? Strangely, the directory 
.ssh was created, but nothing else. I tried this twice. The first 
failure message was

bash: /home/git/.ssh/authorized_keys: No such file or directory

Then I sudo touched the file into existence.  The second error was

bash: /home/git/.ssh/authorized_keys: Permission denied

The article leaves out some details, assuming one is a master of the 
art.  It does not tell you what user you are when you are ssh'd in.  Are 
you logged in as user git in both cases?  If so, why is he changing to 
/home/swapnil to create his directory?  Am I to create 
/home/bruce/project-1.git?

Is there a better article to set up password less ssh login?  And maybe 
setting up a master git repo?  I have a local git, but really want to 
have a dedicated server just do the repo.  Any hints or guidance would 
be helpful.  TIA.  I have multiple satellite computers that need common 
git managed code.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://mail.gnhlug.org/pipermail/gnhlug-discuss/attachments/20221009/35914a04/attachment.html 


More information about the gnhlug-discuss mailing list