SSH for Git apps

Clone and push over SSH to Forgejo or Gitea, on an address and port of the app's own.

Updated November 24, 2026

Git apps such as Forgejo and Gitea work over HTTPS, and they also accept SSH. Cottage gives each such app an SSH address of its own, so you can use your SSH keys instead of an access token.

Where to find it

The app's page in Cottage shows it under Sign-in and devices: a host name such as quiet-heron.tcp.cottagehost.com and a port such as 20417. The app already knows them, so the clone address it shows is complete:

ssh://git@quiet-heron.tcp.cottagehost.com:20417/you/project.git

Add your public key in the app (in Forgejo and Gitea: Settings → SSH / GPG Keys), then clone, pull and push as usual. To use the short form, add the port to your ~/.ssh/config:

Host quiet-heron.tcp.cottagehost.com
  Port 20417

Good to know

  • The address and port stay the same for the life of the app, through updates and restarts.
  • With a custom domain, SSH can use ssh.<your domain> instead: the web address panel on the app's page shows the one extra record to add.
  • Web traffic goes through Cloudflare. SSH can't, so the SSH address points straight at the server your app runs on.
  • Your app's access controls apply to SSH too: the allowlist and blocklist work for IPv4 addresses. SSH is IPv4 only, so an allowlist with only IPv6 addresses blocks SSH. The password gate is for the web only; SSH has your keys.
  • SSH stays closed until you finish your app's setup in the browser.
  • Each address can open a limited number of new connections a minute. Normal Git use never hits the limit, but a script that opens hundreds of connections may need to slow down.

Still stuck?

Email support@cottage.host. A person reads every message. If something seems down, check Cottage's status page.