Host SSH Aliases
are defined a number of aliases to make it a bit quicker to do commands to a single host. Basically it aliases the host name with "ssh hostname". For example typing
is the same as doing
is the name as using ssh to execute a single command on bg-mds-1:
ssh bg-mds-1 hostname
. Because of shell syntax, complicated commands (e.g., ones involving pipes) will need to be quoted to be executed entirely on the remote host (e.g.,
swc-001 "df -h | grep /export"
To do issue the same command to more than one host at the same time, use
and either specify a host type (e.g.,
) or a list of hosts using
--hosts option: =--hosts swc-003,bg-mds-1,server-2
. See more on the project book page.