TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

ClusterSSH for iTerm2

61 pointsby ilikejamover 3 years ago

8 comments

antoniomikaover 3 years ago
You can use tmux to achieve the same using `set synchronize-panes on`. I&#x27;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:<p>HOSTS=&quot;$(echo runner{0..30}.example.com)&quot; syncssh<p>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].<p>[1] <a href="https:&#x2F;&#x2F;gist.github.com&#x2F;antoniomika&#x2F;81b81b908f057cd7aafc0df4d7c4aec9" rel="nofollow">https:&#x2F;&#x2F;gist.github.com&#x2F;antoniomika&#x2F;81b81b908f057cd7aafc0df4...</a><p>[2] <a href="http:&#x2F;&#x2F;linuxpixies.blogspot.com&#x2F;2011&#x2F;06&#x2F;tmux-copy-mode-and-how-to-control.html" rel="nofollow">http:&#x2F;&#x2F;linuxpixies.blogspot.com&#x2F;2011&#x2F;06&#x2F;tmux-copy-mode-and-h...</a>
jevinskieover 3 years ago
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:<p><a href="https:&#x2F;&#x2F;github.com&#x2F;jevinskie&#x2F;jeviterm" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;jevinskie&#x2F;jeviterm</a><p>The QEMU patch in the root dir spawns a window for all the TTY outputs and monitor for your session. Very handy!<p>There are brew tap instructions and a demo video here:<p><a href="https:&#x2F;&#x2F;mobile.twitter.com&#x2F;jevinskie&#x2F;status&#x2F;1482443633777209346" rel="nofollow">https:&#x2F;&#x2F;mobile.twitter.com&#x2F;jevinskie&#x2F;status&#x2F;1482443633777209...</a>
dig1over 3 years ago
Also there is ansible-console [1] REPL, from which you can run ansible or shell commands, which are executed on multiple hosts.<p>[1] <a href="https:&#x2F;&#x2F;docs.ansible.com&#x2F;ansible&#x2F;latest&#x2F;cli&#x2F;ansible-console.html" rel="nofollow">https:&#x2F;&#x2F;docs.ansible.com&#x2F;ansible&#x2F;latest&#x2F;cli&#x2F;ansible-console....</a>
评论 #30365230 未加载
roughlyover 3 years ago
I’ve used this technique fixing incidents - pulling this one out of the toolkit is a sign that you have well and truly fucked up somewhere up the line. This is the “emergency car window punch” of tools - when you need it, you really need it, but my god you shouldn’t be using it unless you’re really, really sure you need it.
gourneauover 3 years ago
This looks cool for interactive things.<p>Another option for less interactive things would be clush (Clustershell) <a href="https:&#x2F;&#x2F;clustershell.readthedocs.io&#x2F;en&#x2F;latest&#x2F;tools&#x2F;clush.html" rel="nofollow">https:&#x2F;&#x2F;clustershell.readthedocs.io&#x2F;en&#x2F;latest&#x2F;tools&#x2F;clush.ht...</a>
isaac-pedover 3 years ago
very nice! I was looking for something like this a while ago for defining tiled window setups with commands pre-run over ssh [1].<p>Not nearly as polished (or well documented) as your solution - quite nice to have something that does &quot;one thing well&quot;. I will keep it in mind next time I&#x27;m in that situation.<p>[1] <a href="https:&#x2F;&#x2F;github.com&#x2F;isaac-ped&#x2F;iTerm-Split-Automator" rel="nofollow">https:&#x2F;&#x2F;github.com&#x2F;isaac-ped&#x2F;iTerm-Split-Automator</a>
lowbloodsugarover 3 years ago
Appearing soon in a post-mortem blog post!
评论 #30367270 未加载
jmakovover 3 years ago
Would love to see this feature for Byobu terminal.