You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailscale/cmd/tailscale/cli
Maisem Ali 67325d334e cmd/tailscale/cli: add lose-ssh risk
This makes it so that the user is notified that the action
they are about to take may result in them getting disconnected from
the machine. It then waits for 5s for the user to maybe Ctrl+C out of
it.

It also introduces a `--accept-risk=lose-ssh` flag for automation, which
allows the caller to pre-acknowledge the risk.

The two actions that cause this are:
- updating `--ssh` from `true` to `false`
- running `tailscale down`

Updates #3802

Signed-off-by: Maisem Ali <maisem@tailscale.com>
2 years ago
..
auth-redirect.html cmd/tailscale/web: add support for QNAP 3 years ago
bugreport.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
cert.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
cli.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
cli_test.go all: gofmt all 2 years ago
configure-host.go cmd/tailscale: make configure-host on Synology also add CAP_NET_RAW 2 years ago
debug.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
diag.go cmd/tailscale: print more detail in connection failure error message 3 years ago
diag_other.go all: gofmt with Go 1.17 3 years ago
down.go cmd/tailscale/cli: add lose-ssh risk 2 years ago
file.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
id-token.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
ip.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
logout.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
nc.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
netcheck.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
ping.go cmd/tailscale, ipn/ipnlocal: add "peerapi" ping type 2 years ago
risks.go cmd/tailscale/cli: add lose-ssh risk 2 years ago
ssh.go cmd/tailscale/cli: add lose-ssh risk 2 years ago
ssh_exec.go cmd/tailscale/cli: fix ssh CLI command breaking the Wasm build 2 years ago
ssh_exec_js.go cmd/tailscale/cli: fix ssh CLI command breaking the Wasm build 2 years ago
ssh_exec_windows.go cmd/tailscale/cli: fix ssh CLI command breaking the Wasm build 2 years ago
ssh_unix.go cmd/tailscale/cli: add lose-ssh risk 2 years ago
status.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
up.go cmd/tailscale/cli: add lose-ssh risk 2 years ago
version.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
web.css cli: web advertise exit node button 3 years ago
web.go client/tailscale: move/copy all package funcs to new LocalClient type 2 years ago
web.html cli: web advertise exit node button 3 years ago
web_test.go cmd/tailscale: update web server test copyright 3 years ago