执行 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.
PTY allocation request failed on channel 0
Hi there, yyt! You’ve successfully authenticated with the key named win 主机, but Gitea does not provide shell access.
If this is unexpected, please log in with password and setup Gitea under another user.
Connection to 192.168.2.105 closed.