-
-
Notifications
You must be signed in to change notification settings - Fork 5.8k
Documentation for SSH is not correct for Alpine linux (fixes in the description) #19065
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Given openssh man pages, this doesn't seems to be a Alpine specific issue, so I fixed the 1st issue in the doc. |
Thank you so much ! What about the |
For the 2nd part, I am not sure to really understand where the problem come from. Is the issue in the docker-shell wrapper, as there is already a -u on the AuthorizedKeysCommand. If you could make a PR, it would be clearer to me |
There is no Does it make more sense ? |
Seems the bug was closed by error (or rather closed automatically), I can't reopen myself it seems. And yes, the wrapper is not the same but I wonder if it should be fixed on the Dockerfile side to force the container to run as the user git, as it would make the doc simpler. |
* giteaofficial/main: [skip ci] Updated translations via Crowdin Fix documentation and go-gitea#19065 (go-gitea#19067) RSS/Atom support for Repos (go-gitea#19055) [skip ci] Updated licenses and gitignores Feeds: render markdown to html (go-gitea#19058) [skip ci] Updated translations via Crowdin
Well I tried running the container as git user and that was not the right fix for this issue, I lost quite a lot of time trying this solution. |
yes, but the docker container should already run as the git user (or I think it should). Forcing the git user on the Docker exec seems like a workaround for something that shouldn't be needed, as adding USER should make it work out of the box. |
Gitea Version
1.16.x
Git Version
No response
Operating System
No response
How are you running Gitea?
Using docker compose
Database
MySQL
Can you reproduce the bug on the Gitea demo site?
No
Log Gist
No response
Description
I have the following error message in my logs by sshd:
fatal: reprocess config line 122: AuthorizedKeysCommand must be an absolute path
After applying https://docs.gitea.io/en-us/install-with-docker/#ssh-shell-with-authorizedkeyscommand
What was needed on my Alpine 3.14 was this diff:
And after the forwarding worked fine after another tweak
I had this error in my logs and git clone failed fetch commands
..s/setting/setting.go:952:loadFromConf() [F] Expect user 'git' but current user is: root
Solved by adding
-u git
in the step https://docs.gitea.io/en-us/install-with-docker/#docker-shell-with-authorizedkeyscommandPlease note on the step above the
-u git
is here, maybe this is also a mistake. See: https://docs.gitea.io/en-us/install-with-docker/#docker-shell-with-authorized_keysScreenshots
No response
The text was updated successfully, but these errors were encountered: