Product specifications
5 – Detailed Descriptions of Command LineTools
D000006-000 Rev A 5-13
Q
Environment Variables
The following environment variables are also used by this command:
HOSTS, HOSTS_FILE - see discussion on selection of hosts above
5.2.3
setup_ssh
(Linux): creates ssh keys and configures them on all hosts so the system can
ssh and scp into all other hosts without a password prompt. Typically, during
cluster setup this tool is used to enable the root user on the IB Management
node to login to the other hosts via password-less ssh. However, if desired, this
tool can also aid the setup of password-less ssh login for other user codes as well.
Usage:
setup_ssh [-C] [-s] [-i ipoib_suffix] [-f hostfile] [-h 'hosts']
[-u user] [-S]
-C - only perform connect (to enter in local hosts knownhosts). When run
in this mode, -S and -s options are ignored).
-s - use ssh/scp to transfer files, default is rsh/rcp.
-i ipoib_suffix - suffix to apply to host names to create IPoIB host
names. The default is '-ib'.
-h hosts - list of hosts to setup.
-f hostfile - file with hosts in cluster, default is
/etc/sysconfig/iba/hosts.
-u user - user on remote system to allow this user to ssh to, default is
current user code.
-S - securely prompt for password for user on remote system.
Example:
setup_ssh -s -S -I""
setup_ssh -C
setup_ssh -h 'arwen elrond' -C
HOSTS='arwen elrond' setup_ssh -C
Environment Variables
The following environment variables are also used by this command:
HOSTS, HOSTS_FILE - see discussion on selection of hosts above.
FF_IPOIB_SUFFIX - suffix to append to hostname to create IPoIB
hostname. Used in absence of -i.