Skip to content

SSH to container Not working with tsdproxy #395

Description

@dj0024javia

Before file a bug
didn't find anything related to this.

Describe the bug
SSH to container(via tcp protocol) not working. I am using gitea in a container, that binds 8222:22 port.
so below config should work.

gitea docker compose

labels:
      tsdproxy.enable: "true"
      tsdproxy.name: "code"
      tsdproxy.ephemeral: "true"
      tsdproxy.port.1: "443/https:3000/http"
      tsdproxy.port.2: "8222/tcp:22/tcp"

so trying below command should work. but it doesn't

ssh -v -p 8222 -i ~/.ssh/id_ed25519 git@code.***-***.ts.net

with local ip, instead of tailscale domain, does seem to work.

Now i have modified some files using AI, and that seemed to resolve reachability issues, but it seems like instead of reaching to container, its going to host.docker.internal:22 port. which is weird.

I am testing some more code changes, but yes any help is appreciated.

Send config

defaultProxyProvider: default
docker:
    local:
        host: unix:///var/run/docker.sock
        targetHostname: host.docker.internal
        tryDockerInternalNetwork: false
lists: {}
tailscale:
    providers:
        default:
            authKey: "key"
    dataDir: /data/
http:
    hostname: 0.0.0.0
    port: 8080
log:
    level: info
    json: false
proxyAccessLog: true


btw, i am greatful that this repo exists, i was in a pickle managing containers with tailscale, i have a lot of services locally running.

and your repo saved me. Thank you for all the work that you do! and keep doing it 🚀

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions