Unable to use ssh #25
Loading…
Reference in New Issue
No description provided.
Delete Branch "%!s(<nil>)"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
After my fresh deployement of gitea and creating my first admin user, I tried to create my first repository and push something to it. But it didnt work :-P
It might have something to do with ports, I'm not sure how non http traffic gets forwarded by traeffik...
But symptoms first:
on my first deployment, with my first user, after adding my ssh publickey, it tells me
The first lines seem to indicate that there is no ssh server listening to port 2222, which is the default in gitea's config.
In fact, simply running
ssh -T git@<myowngitea>
returnsI would prefer to get something similar to this:
Should the host port 2222 (or whatever is configured) be forwarded in the compose file?
Hey @aileoia sorry for leaving a lot of things incredibly undocumented 🙈 (this is becoming our main priority in the new year I think). This is most likely due to missing configuration on the Traefik side. Here is how you can set it up.
In your traefik config env config, add the following:
This triggers the following config to be included:
You'll need to undeploy and redeploy traefik.
Then ensure that you have
GITEA_SSH_PORT=2222
in your Gitea config and you should have access. Let us know how it goes :) A handy way to test if you have access open is just runtelnet mygitea.com 2222
and see if it can connect.Thank you @aileoia for the detailed report and @decentral1se for the righteous advice.
I'll just sprinkle one more suggestion on here:
Hey @decentral1se , thank you so much, that did work ideed!
(I had seen these lines while configuring traefik, but I had forgot about it...)
Should I make a PR to add this to the README?
975fc775c1
🔥