this post was submitted on 23 Aug 2024
8 points (100.0% liked)

Tailscale

83 readers
1 users here now

A community for the Tailscale WireGuard-based VPN. https://tailscale.com/

founded 8 months ago
MODERATORS
 

Hey all!

I'm trying to ssh into my tailnet-hosted (through tailscale serve) gogs instance and I can't seem to figure out how. Has anyone tried doing this? Will I need to add a user to the sidecar container and add a shim like they do in the regular gogs setup? I appreciate any insight.

Edit: Modified title for clarity

you are viewing a single comment's thread
view the rest of the comments
[โ€“] DevKay@programming.dev 2 points 1 month ago (4 children)

Not familiar with gogs, but SSHing into a container is usually not necessary. Should be able to SSH into the host and run docker exec -it commands instead, which is much simpler. If you absolutely have to SSH into the container it should be doable by exposing port 22 on the service and coming up as a tailnet ssh node

Gogs is a git forge server (it was forked into gitea, which was then forked into forgejo), and OP is asking about setting up git over ssh, rather than using ssh to administrate.

load more comments (3 replies)