forked from hukl/hostmux
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathhostmux.mandoc
60 lines (60 loc) · 1.6 KB
/
hostmux.mandoc
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
.Dd Feb 08, 2016
.Dt HOSTMUX 1
.Os
.Sh NAME
.Nm hostmux
.Nd Connects to a list of hosts via ssh in separate tmux split panes
.Sh SYNOPSIS
.Nm
.Op Fl s Ar session-name
.Op Fl l Ar tmux-layout
.Op Fl r Ar remote-host
.Op Fl x
.Op Fl h
.Op Ar host_a
.Op Ar host_b
.Op Ar host_n
.Sh 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.
.Pp
You can then use the synchronize-panes feature of tmux to
multiplex/broadcast commands to all split panes / servers
.Pp
Its arguments are as follows:
.Bl -tag -width Ds
.It Fl s
Specify a name for the tmux session. It defaults to
.Ql hostmux
which means that you can have only one hostmux session at a time if you don't
specify unique names for your sessions
.It Fl l
Specify a valid tmux layout e.g. even-horizontal, tiled, etc. It defaults
to
.Ql even-vertical
.It Fl r
Specify a remote host used to jump to the hosts in a secured environment.
.It Fl x
Close the pane and/or session automatically when the ssh session
session exits successfully
.It Fl h
Display usage information
.It Ar host
Specify a space separated list of one or more user@hostname ssh targets. This
is what you would pass to the ssh command when you are connecting
to a host. Currently there is no support for passing additional flags
to ssh. If you do need them, add them to your ~/.ssh/config
.El
.Sh SEE ALSO
.Bl -tag -width Ds
.It Xr tmux 1
.It Lk https://github.com/hukl/hostmux
.El
.Sh EXIT STATUS
.Ex -std
.Sh AUTHORS
.Nm
was written by
.An John-Paul Bader (hukl) ,
.Mt contact@smyck.org .