Tailscale SSH closes the connection immediately

I’m trying to enable Tailscale SSH (Tailscale SSH · Tailscale Docs) on my RUTM51, but seem to be running into issues. After doing tailscale up --ssh, any attempts to connect to the router over SSH via its Tailscale IP results in the connection closing immediately. If I disable Tailscale SSH (tailscale up --ssh=false) and then connect to the router over SSH via its Tailscale IP, everything works.

Might this be a firewall issue or am I missing a setting somewhere?

Hello,

Could you confirm whether the initial issue with attempting to connect to your tailscale machine via SSH is still present?

When connecting over SSH to your Tailscale-enabled machine, could you confirm the exact syntax you’re using? From a device that also has Tailscale installed, the command should look something like this:

tailscale ssh root@<tailscale machine's name / IP>

If you’re using a different method, it might be bypassing Tailscale SSH.

Best regards,

Thanks for the reply! This is still an issue, yes. I’ve enabled SSH on the router by doing:

tailscale up --ssh

Attempting to connect to the router from another machine on my Tailnet using any of the following methods correctly prompts for authentication through Tailscale, but the connection then immediately closes:

ssh root@<tailnet name>
ssh root@<tailnet ip>
tailscale ssh root@<tailnet name>
tailscale ssh root@<tailnet ip>

Bypassing Tailscale SSH works as expected and authenticates using my SSH key:

ssh root@<ip>

This topic was automatically closed after 60 days. New replies are no longer allowed.