[HN Gopher] ClusterSSH for iTerm2
___________________________________________________________________
ClusterSSH for iTerm2
Author : ilikejam
Score : 41 points
Date : 2022-02-16 19:39 UTC (3 hours ago)
(HTM) web link (github.com)
(TXT) w3m dump (github.com)
| gourneau wrote:
| This looks cool for interactive things.
|
| Another option for less interactive things would be clush
| (Clustershell)
| https://clustershell.readthedocs.io/en/latest/tools/clush.ht...
| jevinskie wrote:
| iTerm2 is by far my favorite terminal! It's API is really cool
| but a bit buried under needing AppleScript, websockets, and
| protocol buffers. There are a couple Go clients but I wanted
| something to call from C so I wrote this library:
|
| https://github.com/jevinskie/jeviterm
|
| The QEMU patch in the root dir spawns a window for all the TTY
| outputs and monitor for your session. Very handy!
|
| There are brew tap instructions and a demo video here:
|
| https://mobile.twitter.com/jevinskie/status/1482443633777209...
| antoniomika wrote:
| You can use tmux to achieve the same using `set synchronize-panes
| on`. I've been using a little script that allows using this trick
| to open up multiple ssh sessions for years [1]. Can do cool
| things like:
|
| HOSTS="$(echo runner{0..30}.example.com)" syncssh
|
| To get into a bunch of machines. Also have an adaptation of this
| that allows you to do the same for any commands (i.e. if you need
| different ssh flags). Also found the original source from back in
| 2011 [2].
|
| [1]
| https://gist.github.com/antoniomika/81b81b908f057cd7aafc0df4...
|
| [2] http://linuxpixies.blogspot.com/2011/06/tmux-copy-mode-
| and-h...
| jmakov wrote:
| Would love to see this feature for Byobu terminal.
| dig1 wrote:
| Also there is ansible-console [1] REPL, from which you can run
| ansible or shell commands, which are executed on multiple hosts.
|
| [1] https://docs.ansible.com/ansible/latest/cli/ansible-
| console....
| geoffeg wrote:
| I wasn't aware of that, pretty cool.
|
| Now if only there was some way to have that ansible repl create
| roles or tasks based on the commands I run through that repl.
| Kinda how script[1] works.
|
| [1] https://www-
| users.cse.umn.edu/~gini/1901-07s/files/script.ht...
___________________________________________________________________
(page generated 2022-02-16 23:00 UTC)