[SOLVED] Cannot use git over ssh

I am running gitea on Arch Linux, but I failed to get git over ssh work.
I followed Gitea - ArchWiki but git clone still shows

git clone ssh://gitea/username/test
Cloning to 'test'...
Gitea: Internal Server Error
Gitea: Internal Server Error
fatal: Could not read from remote repository.

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

I have checked the authorized_keys under ~/.ssh and it do managed by gitea and contains my public key

also simply ssh to it seems works but git over ssh doesn’t

$ ssh gitea
PTY allocation request failed on channel 0

Gitea: Internal error
Gitea: Internal error
Connection to git.domain.tld closed.

You can change RUN_MODE to dev in app.ini and try again. It will display the error detail.

fixed by switching to unix socket + nginx reverse proxy