[Question] git SSH through Tailscale sidecar container? - eviltoast

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.

  • just_another_person@lemmy.world
    link
    fedilink
    English
    arrow-up
    1
    ·
    3 months ago

    You’ve got a lot of errors in there, and it’s hard to tell which may be the culprit. I’m going to guess your keys can’t be read. I’d go back through the setup steps and make sure your PUBLIC key is setup properly for the git user.

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

      Well that’s the thing, there’s no git user. I’m trying to directly ssh into the gogs container through the tailscale sidecar container via the tailnet, so I’m not going through the host machine. I’m just trying to see if there’s a way I can do it that’s a bit less fiddly than having to rebuild the container with the right user and whatnot.