3 ms·
noobermin: thanks for looking at Teleport with an open mind. Good point on grep: our people have heard of it. :) The reason `tsh` takes label filters as an arg
by old-gregg 11y ago
noobermin: thanks for looking at Teleport with an open mind. Good point on grep: our people have heard of it. :)
The reason `tsh` takes label filters as an argument to all of its sub-commands (not just "ls") is to perform actions only on machines that fit the criteria, maybe you want to "tsh scp" a file to all "distro=debian" nodes, or you want to "tsh ssh role=postgres_master" not knowing which node is the master at this time.
The background story behind these little "niceties" is this: internally we've always wanted to have a bit of Ansible-like slice&dice magic in interactive mode for raw SSH, so we've built it and sharing it: perhaps someone else would find it useful.