setting up my own git server
Šarūnas
sarunas.burdulis at yahoo.com
Sun Oct 9 14:41:19 EDT 2022
On 09/10/2022 14.32, Bruce Labitt wrote:
> 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
I don't know about git server (probably just a host with SSH access?),
but copying your public key to remote host can be done with:
ssh-copy-id -i ~/.ssh/id_rsa.pub git at remote-server
It always worked.
Good luck,
--
Šarūnas Burdulis
math.dartmouth.edu/~sarunas
-------------- next part --------------
A non-text attachment was scrubbed...
Name: OpenPGP_signature
Type: application/pgp-signature
Size: 495 bytes
Desc: OpenPGP digital signature
Url : http://mail.gnhlug.org/pipermail/gnhlug-discuss/attachments/20221009/54db4a61/attachment.bin
More information about the gnhlug-discuss
mailing list