![]() Do you mean built in Gitea, or built in system ssh? ![]() You said not needed for “buit in ssh server” for not adding the ssh keys. That is why I was trying to push to the repos directly using the standard ssh way. So I am really not sure how this is supposed to work. I tried either cloning, or pushing directly using this url but ssh cannot find the path. So I assumed that my setup is correct but like I said Gitea is not intercepting (TestRepo is created in Gitea). And I see that Gitea added an extra line (at the bottom) to. I already added MYUSER public key in Gitea. I am also using my own existing system/login user with Gitea since I want my commits to be shown with my own user name, also helpful for the existing ssh. I installed Gitea on an existing system that has ssh server already in place. So please bear with me while I provide more info about my setup. I gained some insight but I am still not sure about what is going on here. Resynchronize pre-receive, update and post-receive hooks of all repositories.Īfter that you HAVE to set your SSH keys through gitea web-UI.(Not needed for the built-in SSH server.) Update the ‘.ssh/authorized_keys’ file with Gitea SSH keys. ![]() The first thing you should try now is to go into the Admin settings on the gitea UI and execute: However that’s wrong and you should definitely let gitea handle this file.įurthermore everytime a user adds an SSH key via gitea web-UI the authorized_keys file gets overwritten.Īnother thing is that usually the user from the SSH url is git or whatever is configured in the app.ini and not the actual gitea-user itself. One reason this happens is that you set your SSH key in the authorized_keys file yourself with e.g. So what you do when using the original path is bypassing gitea, which shouldn’t be possible at all! Gitea itself provides the mapping to the actual repository location. To clarify the SSH url: the stuff after the colon is for internal use in gitea.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |