I've just setup my first local Gitea server and everything works fine except SSH. Normal SSH works fine but not when I try to interact with Gitea.
The shown URL is ssh://[email protected]:123/user/hello-world.git
Why "git@"? My username is not "git" but Gitea server runs as user "git".
If I change "git" to my real username I at least can successful authenticate with my private SSH key. How can I fix that URL to display the correct username?
However, if I try git clone
, I always get fatal: '/user/hello-world.git' does not appear to be a git repository
This is my gitea/app.ini
file:
[server]
ROOT_URL = https://gitea.xxx.local/
DOMAIN = gitea.xxx.local
HTTP_PORT = 3000
SSH_DOMAIN = gitea.xxx.local
SSH_PORT = 123
DISABLE_SSH = false
Gitea is listening on localhost only, and I'm using nginx as a reverse proxy from :443
to :3000
which works fine for web but not for SSH.
openssh-server is listening on :123
and I can successfully authenticate there. How do I forward the SSH connection to the internal Gitea server? Also with nginx?