Q-Logic IB6054601-00 D Manuel D’Utilisation

Page de 122
3 – Using InfiniPath MPI
InfiniPath MPI Details
3-6
IB6054601-00 D
Q
The process is shown in the following steps:
1. Create a key pair. Use the default file name, and be sure to enter a passphrase.
ssh-keygen -t rsa
2. Enter a passphrase for your key pair when prompted. Note that the key agent 
does not survive X11 logout or system reboot:
ssh-add
3. This tells 
ssh
 that your key pair should let you in:
cat ~/.ssh/id_rsa.pub >> ~/.ssh/authorized_keys
edit  ~/.ssh/config so that it reads like this:
Host*
ForwardAgent   yes
ForwardX11   yes
CheckHostIP   no
StrictHostKeyChecking   no
This forwards the key agent requests back to your desktop. When you log into 
a front end node, you can ssh to compute nodes without passwords. 
4. Start ssh-agent by adding the following line to your ~/.bash_profile (or 
equivalent in another shell):
eval ‘ssh-agent‘
Use back-quotes rather than normal single-quotes. Programs started in your 
login shell will then be able to locate
 ssh-agent
 and query it for keys.
5. Finally, test by logging into the front end node, and from the front end node to 
a compute node as follows:
ssh frontend_node_name
ssh compute_node_name
For more information, see the man pages for
 ssh(1),ssh-keygen(1)
ssh-add(1)
, and 
ssh-agent(1)
Alternatively, the cluster administrator can accomplish this for all users through the 
shosts.equiv
 mechanism, as described in 
.