tailscale / tailscale/tailscale

SSH open, ts switch 2, ts switch 1 -- results in lockout for Client device

Open
#13,682 1 comment 0 reactions 0 assignees View on GitHub
bug needs-triage
Dominant language
Go
Stars
36.5k
Forks
3.2k
Avg merge
2d 3h
Merged PRs (30d)
123

Description

### What is the issue?

Can't reconnect over SSH if I: `ssh S1-tailnetA` (S1-tnA); `tailscale switch tnB`; locally kill ssh connection; `tailscale switch tnA`; attempt to reconnect `ssh S1-tailnetA`.

### Steps to reproduce

- From a terminal (not web), SSH into a remote Server(-A), while connected on account ts-A / to tailnet ts-A
- Locally on client, switch to account B, i.e. run `tailscale switch [ts-B]`
- Close / kill the ssh connection, e.g. `[\n]~.`
- Locally on client, switch back to A, i.e. run `tailscale switch [ts-A]`
- _Attempt_ `ssh [Server-A]` -- connection hangs until connect timeout

For comparison, I am able to ssh from the web to the Server through this. And can `tailscale ping [Server-A]`, from laptop (while unable to ssh), from other hosts, and see updates from the web.

### Are there any recent changes that introduced the issue?

_No response_

### OS

Linux

### OS version

Debian 11.0, Ubuntu 22.04.5

### Tailscale version

1.74.1

### Other software

_No response_

### Bug report

_No response_

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.