Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Tailscale SSH #58

Open
sylvorg opened this issue Oct 19, 2023 · 3 comments
Open

Enable Tailscale SSH #58

sylvorg opened this issue Oct 19, 2023 · 3 comments

Comments

@sylvorg
Copy link

sylvorg commented Oct 19, 2023

Hello!

As in the title; would it be possible to enable Tailscale SSH when logging in, or modify the tailscale up options?

Thank you kindly for the help!

@DentonGentry
Copy link
Contributor

It is probably possible but I don't think it would do what one would want. Docker Desktop Extension, even on macOS and Windows, runs a small Linux system in a VM behind the scenes. tailscaled runs inside that VM, accepts connections coming in from the tailnet, and then connects to the same port on localhost so it can reach other containers which Docker Desktop is hosting.

There isn't a way for Tailscale SSH to let you get a shell inside the containers you are running. Even though you can use Tailscale to connect to ports on those containers, it is doing so by bouncing through localhost.

Tailscale SSH doesn't have a way to spawn a shell in the containers you are running, it only has a way to spawn a shell in the little Linux VM running behind the scenes.

@sylvorg
Copy link
Author

sylvorg commented Oct 19, 2023

This is the HyperVM in Windows' case, correct? I've got Tailscale SSH working on Ubuntu and NixOS on WSL2, if that's a similar situation?

@sylvorg
Copy link
Author

sylvorg commented Oct 19, 2023

Ah; now I get what you're saying. Could you show me a way to install and attach Tailscale in a situation such as docker compose, like what the service settings would be?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants