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@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.
_______________________________________________
gnhlug-discuss mailing list
gnhlug-discuss@mail.gnhlug.org
http://mail.gnhlug.org/mailman/listinfo/gnhlug-discuss/