So yesterday I set up forgejo, which is the software behind codeberg, and imported all my 88 git repos from github, so far so good.
But then I spent the rest of the day trying to figure out how to be able to use port 22, which I already use for sshd to share it with forgejo so I could clone and push to it without the need of a non standart Port and I am almost giving up on it, almost. I will try today again, but I’m running out of options and the documentation is not telling me how to set it up.
Because otherwise I will need to set up a different way of logging in to authenticate on every computer. I’m using ssh for every git server. How do you authenticate, with a different access token for each git server in ~/.gitconfig?
So interesting, actually yesterday I was sporadically reading that page but not following it exactly. Now that you posted the link I really paid attention and followed it again, and I have the feeling I did exactly the same steps, but now it just worked!
Thanks so much, this is awesome, now I really don’t need GitHub anymore.
I’m glad it helped! From what I remember when I checked out forgejo their documentation was really lacking, but some of it has gotten better since they did the hard fork
So yesterday I set up forgejo, which is the software behind codeberg, and imported all my 88 git repos from github, so far so good.
But then I spent the rest of the day trying to figure out how to be able to use port 22, which I already use for sshd to share it with forgejo so I could clone and push to it without the need of a non standart Port and I am almost giving up on it, almost. I will try today again, but I’m running out of options and the documentation is not telling me how to set it up.
Any tips are welcome!
You have to
Why the need to push via ssh? I am genuinely wondering, since you can easily push without having that enabled at all.
That’s an odd question as ssh is very convenient and secure compared to https.
Because otherwise I will need to set up a different way of logging in to authenticate on every computer. I’m using ssh for every git server. How do you authenticate, with a different access token for each git server in ~/.gitconfig?
Odd, setting this up with gitea (which forgejo was forked from) was painless, maybe their guide will help. There is a few different options
So interesting, actually yesterday I was sporadically reading that page but not following it exactly. Now that you posted the link I really paid attention and followed it again, and I have the feeling I did exactly the same steps, but now it just worked!
Thanks so much, this is awesome, now I really don’t need GitHub anymore.
Here is the script I used to migrate: https://git.jeena.net/jeena/github2forgejo
I’m glad it helped! From what I remember when I checked out forgejo their documentation was really lacking, but some of it has gotten better since they did the hard fork