Hey all!

I posted this to /c/tailscale yesterday and I figured I’d post it here to get some more visibility.

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: Added tag and modified title for clarity.

    • thegreekgeek@midwest.socialOP
      link
      fedilink
      English
      arrow-up
      2
      ·
      2 months ago

      Ope sorry, right now I just have the serve config doing a redirect of port 22, however when I try to SSH in I get rejected by tailscale ACL. Says there’s no user named git.

      If I followed the steps for the vanilla docker setup I’d add a git user to the host and softlink the host authorized_keys file to the gogs container’s version, as well as add a shim script to forward the command into the container using the docker exec command, but I’d rather not do that by mucking about in the sidecar if there’s a better way. The tailscale universal docker mod for linuxserver.io says they have ssh access for their containers but as far as I can tell it just pops in the --ssh flag in tailscale up.