Cloudflare ssh tunnels using tailscale #13696

Closed
opened 2025-11-02 10:50:41 -06:00 by GiteaMirror · 1 comment
Owner

Originally created by @Ijackedupmycode on GitHub (Nov 11, 2024).

Description

i set my keys and everything up and was wondering the last bit i'm having trouble with is ssh git pull/pushes behing a cloudflare domain.
mainly due to i want let friends in but not if they have a

git clone git@192.168.0.xxxx:username/test.git

but more so behind a cloudflare ssh
git pull git@subdomani.domain:username/test.git
using my unraid and i tried on my nuc in reg docker but no luck on this last piece of the puzzle.
DOMAIN = 192.168.0.xxxx
SSH_DOMAIN = sub.domain.com
HTTP_PORT = 3000
ROOT_URL = https://sub.domain.com/
DISABLE_SSH = false
SSH_PORT = 22
SSH_LISTEN_PORT = 22
LFS_START_SERVER = true

Gitea Version

1.22.3

Can you reproduce the bug on the Gitea demo site?

No

Log Gist

No response

Screenshots

mainly i can ssh pulls using my tailscale ip easy day.

but when i go into cloudflare zero trust and make a sud.domain.com > ssh:// tails-ip
i get an error and my instance goes down.

Git Version

1.22.3

Operating System

unraid docker

How are you running Gitea?

unraid docker

Database

PostgreSQL

Originally created by @Ijackedupmycode on GitHub (Nov 11, 2024). ### Description i set my keys and everything up and was wondering the last bit i'm having trouble with is ssh git pull/pushes behing a cloudflare domain. mainly due to i want let friends in but not if they have a git clone git@192.168.0.xxxx:username/test.git but more so behind a cloudflare ssh git pull git@subdomani.domain:username/test.git using my unraid and i tried on my nuc in reg docker but no luck on this last piece of the puzzle. DOMAIN = 192.168.0.xxxx SSH_DOMAIN = sub.domain.com HTTP_PORT = 3000 ROOT_URL = https://sub.domain.com/ DISABLE_SSH = false SSH_PORT = 22 SSH_LISTEN_PORT = 22 LFS_START_SERVER = true ### Gitea Version 1.22.3 ### Can you reproduce the bug on the Gitea demo site? No ### Log Gist _No response_ ### Screenshots mainly i can ssh pulls using my tailscale ip easy day. but when i go into cloudflare zero trust and make a sud.domain.com > ssh:// tails-ip i get an error and my instance goes down. ### Git Version 1.22.3 ### Operating System unraid docker ### How are you running Gitea? unraid docker ### Database PostgreSQL
GiteaMirror added the type/bug label 2025-11-02 10:50:41 -06:00
Author
Owner

@wxiaoguang commented on GitHub (Apr 23, 2025):

i get an error and my instance goes down.

I do not think a network configuration could make "Gitea instance down".

Please make sure your ssh tunnel is configured correctly, you could make it point to your real ssh server to test it to make sure it works as expected.

@wxiaoguang commented on GitHub (Apr 23, 2025): > i get an error and my instance goes down. I do not think a network configuration could make "Gitea instance down". Please make sure your ssh tunnel is configured correctly, you could make it point to your real ssh server to test it to make sure it works as expected.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/gitea#13696