Forgejo: Difference between revisions
Described forgejo features |
Described changing SSH to nonstandard port |
||
| Line 1: | Line 1: | ||
Forgejo is an open source {{Term|git forge}} that aims to implement {{Term|federation}} using the [https://activitypub.rocks/ ActivityPub] protocol. It can be self-hosted to provide code collaboration services similar to GitHub, such as remote git repositories, issue tracking, and pull/merge requests. | Forgejo is an open source {{Term|git forge}} that aims to implement {{Term|federation}} using the [https://activitypub.rocks/ ActivityPub] protocol. It can be self-hosted to provide code collaboration services similar to GitHub, such as remote git repositories, issue tracking, and pull/merge requests. | ||
== Step | == Step 0 (Optional): Change your SSH to a nonstandard port == | ||
Git forges provide the ability to interact via HTTP or SSH. If you want users to interact with your Forgejo instance using the standard SSH port, and you have an existing SSH server on the same device, you must move your regular SSH server to another port. Forgejo supports SSH over other ports, but all of your users will have to specify that port in their <code>git clone</code> commands or configure it in their <code>~/.ssh/ssh_config</code> file. | |||
To change your SSH port, edit <code>/etc/ssh/sshd_config</code>, uncomment the line starting with <code>Port</code>, and change the number to something other than 22. Open the corresponding port in your firewall. For more information on firewall configuration, see [[Firewalling Basics]]. | |||
Revision as of 23:27, 9 September 2026
Forgejo is an open source git forge that aims to implement federation using the ActivityPub protocol. It can be self-hosted to provide code collaboration services similar to GitHub, such as remote git repositories, issue tracking, and pull/merge requests.
Step 0 (Optional): Change your SSH to a nonstandard port
Git forges provide the ability to interact via HTTP or SSH. If you want users to interact with your Forgejo instance using the standard SSH port, and you have an existing SSH server on the same device, you must move your regular SSH server to another port. Forgejo supports SSH over other ports, but all of your users will have to specify that port in their git clone commands or configure it in their ~/.ssh/ssh_config file.
To change your SSH port, edit /etc/ssh/sshd_config, uncomment the line starting with Port, and change the number to something other than 22. Open the corresponding port in your firewall. For more information on firewall configuration, see Firewalling Basics.