求助!!!!Gitea无法使用ssh

首先,附上我自己搭建的Gitea环境

然后我在本地电脑上设置了ssh密钥,在设置里面添加了公钥

执行 ssh -T gitea@git.rumosky.com -p2222,结果如下:
Hi there, rumosky! You’ve successfully authenticated with the key named ZTZN, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
这说明SSH是好的啊,而且修改的端口也是生效的

但是,我新建一个仓库,然后git clone之后,显示:
Gitea: Internal error
fatal: Could not read from remote repository.

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

不知道是什么意思,为什么就没有权限了,仓库肯定是存在的,求助!!!!


这是服务器配置信息

在服务器端,也配置好了.ssh目录,里面的authorized_keys文件也包含了公钥内容,
sshd_config中的PubkeyAuthentication yes也开启了,还是无法clone

請參考這篇:

底下的 SSH Container Passthrough 主題

上面这句意味着你没有给git这个用户提供一个可用的shell。回顾下你是用什么命令创建的git用户?