-
Notifications
You must be signed in to change notification settings - Fork 22
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
Add information on how to activate git ssh connection #13
Comments
How did you get Gitea to load the modified config file? |
See wiki. It bypasses the ssh madness completely by using built-in ssh server on a non-privilaged port. |
The solution in the first post worked perfectly fine for me, but i also had to use the re-write „.ssh/authorized_keys“ option from the admin Dashboard. |
Hi, I am trying to follow the solution from the first post, but What I did so far:
What does not work:
What irks me is that I can see in 'ssh -v [email protected]` log that the authentication seems to work (see the first line without debug1 prefix) , but anythign else still doesn't work:
I slowly develop a feeling that the Any ideas? PS: I would much rather have Gitea listen on a normal SSH port 22, and don't want to go the custom port route as long as I have other options. The advice in the wiki will be my nuclear option if I won't manage to make normal SSH work. |
I have a similar (or in fact the same) problem with SSH. I altered the login shell for user 'gitea' to /bin/sh to ensure that user gitea can call the binary and perform the git actions via SSH. Motivation is to use the SSH-URLs as provided by Gitea. Whenever I do a
user 'gitea' succeeds in establishing the SSH connection with every of the authorized_keys from the Gitea application users. The interception by Gitea seems to work and the right repository is picked. But on the actual git operation I get a 'Permission denied' when trying to do a git-receive-pack or git-upload-pack. I would like to try whether this problem can be solved by granting user 'gitea' permission to use the 'Git Server' package. (It seems, only users explicitly permitted in the allowlist of the Git Server package can actually perform git actions?) However, being a "Package User", 'gitea' does not show up in the permission list of the Git Server package. I have no idea how to grant the relevant permission to 'gitea'. Can anyone help? EDIT: |
I used your script some days ago and set up gitea 1.2.0rc2.
I had to manually edit the config file because the automatic path for the .ssh user folder was wrong.
It pointed to "/usr/local/gitea/gitea/.ssh" (the package folder) instead of "/usr/local/gitea/.ssh" (the user folder).
And i also had to edit the "/etc/passwd" file to allow login for the gitea user.
But some security function or whatever seems to overwrite the passwd file from time to time so i need to do this change again. I'm trying to figure out why this happens.
Maybe you can include these two steps in the description.
The text was updated successfully, but these errors were encountered: