HOSTMUX(1)
HOSTMUX(1) π¦
okay so this page is from the General Commands Manual, and it's literally about hostmux, the icon of connecting to a whole list of hosts via ssh in separate tmux split panes. slay.
πΈ NAME πΈ
hostmux β connects to a list of hosts via ssh in separate tmux split panes. no cap, that's the whole vibe π
β¨ SYNOPSIS β¨
hostmux [-h] [-s session-name] [-l tmux-layout] [-f host_file]
[-c ssh command] [-o ssh option] [-x] [-p] [-P] [-a] host1
[host2 ...]
π DESCRIPTION π
Call hostmux followed by a list of hosts you want to connect to via ssh. The script will create a new tmux session with a split pane for each specified host and connect to it. bestie, it's giving orchestration but make it cute π
You can then use the synchronize-panes feature of tmux to multiplex/broadcast commands to all split panes / servers (see -a). that's the main character energy right there β¨
its arguments are as follows: π«Ά
-s session-nameβ specify a name for thetmuxsession. It defaults to'hostmux', which means that you can have only onehostmuxsession at a time if you don't specify unique names for your sessions. lowkey important, ngl π-l tmux-layoutβ specify a validtmuxlayout e.g.even-horizontal,tiled, etc. It defaults toΒ΄even-verticalΒ΄. pick your aesthetic π-f hostfileβ specify a file which contains a newline separated list of[user@]host names. The hosts from the file will be merged with the hosts provided as optional arguments. merging? we love a collaborative moment π-xβ close the pane and/or session automatically when thesshsession exits successfully. clean exit, clean conscience β¨-pβ identify panes by setting the pane title to thesshhostname (tmux >= 2.3), may not work if the remote host does$PS1magic like setting the terminal title, in that case use-P. fr fr, remote prompts can be messy π-Pβ identify panes by setting the remote prompt$PS1to"[<hostname>]$ "after login. prompt glow-up, but make it informative π-aβ synchronize all panes, i.e. type commands simultaneously in all panes. one keyboard, many servers, iconic π-cβ specify the (wrapper)sshcommand. It defaults to"ssh". swap the wrapper if you're feeling fancy π¦-oβ specify additionalsshoptions such as-vvvv,-ior-p. extra flags, extra lore π₯-hβ display usage information. when in doubt, ask for help bestie πhostβ specify a space separated list of one or moreuser@hostnamesshtargets. This is what you would pass to thesshcommand when you are connecting to a host. You can pass additional flags tossheither with the-ooption or by adding them to your~/.ssh/config. yes, your config file is part of the group chat πΈ
π SEE ALSO π
also, the project lives at https://github.com/hukl/hostmux β go be nosy, iykyk π
πͺ EXIT STATUS πͺ
The hostmux utility exits 0 on success, and >0 if an error occurs. success is cute; errors are not, but at least they're honest π
π AUTHORS π
hostmux was written by John-Paul Bader (hukl), contact@smyck.org. author credit, periodt π«Ά
okay bye bestie β this page's source/version is sh, dated April 7, 2017, and it's giving HOSTMUX(1) energy π
π¦ where this page comes from
- nixos 26.05: hostmux 1.4.1
- nixpkgs unstable: hostmux 1.4.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms