Skip to content

Instantly share code, notes, and snippets.

@fumiya-kume
Last active December 12, 2024 15:13
Show Gist options
  • Save fumiya-kume/03998178792bf821ddaa9a8d4b2ddedf to your computer and use it in GitHub Desktop.
Save fumiya-kume/03998178792bf821ddaa9a8d4b2ddedf to your computer and use it in GitHub Desktop.
List up the tailscale machines, and ssh it with selected one.
function tssh
ssh (tailscale status --active | awk '/^# / {next} /^[ \t]*$/ {next} /^\-/ {next} {print $2}' | peco | tr "\n" "\0")
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment