Commit Graph
2 Commits
Author SHA1 Message Date
Percy Wegmann b452c71d87 Makefile,ssh/tailssh: do not use login command when in a pty on Ubuntu
The shadow utils version of `login` that ships with `Ubuntu` does not preserve
the pty terminal modes that were set by the SSH client, though the version
shipped with some other distributions does. Since `su` does preserve terminal
modes, we use this on Ubuntu instead.

Updates tailscale/corp#50380

Signed-off-by: Percy Wegmann <[email protected]>
2026-10-27 09:38:45 -05:00
Brad Fitzpatrick 467ef0f372 ssh/tailssh, tstest/natlab/vmtest: expand Tailscale SSH test coverage
Add Docker integration tests for TCP and Unix forwarding, pty size,
resize and modes, session env, envknobs, x11 rejection, session
teardown, SessionDuration, policy changes and RuleExpires on active
sessions, Shutdown, host keys and utmp, and run every integrationtest
test in the Dockerfile. Extend the vmtest SSH tests to use real
OpenSSH clients across the tailnet for pty, sftp/scp, agent and port
forwarding, AcceptEnv, ControlMaster, large transfers, banners, user
mapping, revocation, check mode (via a new testcontrol handler),
recording, and the tailscale ssh CLI. Fix make sshintegrationtest,
which only ever tested one image and always exited 0, and trigger the
workflow on go.mod changes and a schedule.

Updates #13038
Updates tailscale/corp#50380

Signed-off-by: Brad Fitzpatrick <[email protected]>
Change-Id: Ie4fffad7e9298b6b77c3ec3a6ae81fd784d182ce
2026-10-26 22:19:22 +00:00