The problem of git moving out of git Project under linux

step 1: I installed the git server on the linux server.
step 2: I used the git init / home/git/item/test.git command to create a git repository;
step 3: I moved out code: git clone git@127.0.0.1:/home/git/item/test.git in another folder on the linux server

then the error is reported as follows:
ERROR:gitosis.serve.main:Repository read access denied
fatal: Could not read from remote repository.

Please make sure you have the correct access rights
and the repository exists.

find a solution, thank you

Dec.14,2021

like I said, I don't have permission. Check the SSH permission of git account

.

Local direct is fine

git clone /home/git/item/test.git
Menu