I am configuring git and gitosis on the server to manage my repositories. It works correctly for the initial shell account with which I configured it, i.e. I can run:
git clone git@MYSERVER:gitosis-admin.git
But when I try to use the individual accounts that I created (via gitosis.conf), it keeps asking for the password:
git clone johndoe@MYSERVER:gitosis-admin.git
I configure the SSH key and push the copy to keydir on the server. This question seems to be about the same problem, but the solution is for the turtle.
Git keeps asking for a password
How to tell git to use the ssh key instead of asking for a password?
You are not using your username, you always say:
git clone git@MYSERVER:<repository>
Gitosis .
[group users] members = johndoe janeroe writable = repo1 repo2
gitosis.conf johndoe.pub, janedoe.pub gitosis-admin/keydir; gitosis , "git" URL-. , "git".
, , AFAICT johndoe@MYSERVER . git@ , ssh- , , () johndoe janedoe.
johndoe@MYSERVER
git@
, SSH johndoe , , , git id johndoe. , , , . SSH , johndoe git, , .
OTOH, gitosis , ssh johndoe , , johndoe @... git. , git .
Source: https://habr.com/ru/post/1786287/More articles:PDF stream in iframe - c #The fastest way to create string combinations is performanceIs it possible to install the HAL driver on an Android device when it is turned on? - androidLinq to Sql: возврат ограниченного количества строк в группе - c#How to get to the bottom of the list, upload more items - androidHow to deal with Null (GridView Container.DataItem) - asp.nethow to get the fully qualified server name and port running in mvc 2 using codebehind - asp.net-mvc-2Android emulator restarts if I try to fix gps coordinates - androidDebugging with zend studio 8 - choosing a local resource - zend-studioРекомендации по архитектуре плагина MVC3 - asp.net-mvcAll Articles