I am on a linux cluster with 4 nodes (n1.a.com, n2.a.com, n3.a.com, n4.a.com) logged in node 1 (n1.a.com) .
Now I have an executable named " sample.out " which I want to run on the cluster from node 1 .
I have SSH keys set with passphrase .
I also have the host list file in " hosts.txt " as
n1.a.com:8
n2.a.com:8
n3.a.com:8
n4.a.com:8
So, I am running the following command:
mpiexec -n 32 -f hosts.txt ./sample.out
However, running this above command, all the other 3 nodes are asking for passphrase simultaneously as
Enter passphrase for key '/home/a/.ssh/id_dsa': Enter passphrase for key
'/home/a/.ssh/id_dsa': Enter passphrase for key '/home/a/.ssh/id_dsa':
Now typing the passphrase here is not working ! It repeatedly asks for the same thing on entering the passphrase.
My queries
Some may-be useful information of my system:
Workload Manager :- Torque Batch System
>>mpich2 --version
HYDRA build details:
Version: 1.4.1p1
Release Date: Thu Sep 1 13:53:02 CDT 2011
Process Manager: pmi
Launchers available: ssh rsh fork slurm ll lsf sge manual persist
Topology libraries available: hwloc plpa
Resource management kernels available: user slurm ll lsf sge pbs
Checkpointing libraries available:
Demux engines available: poll select
In order to avoid typing in passphrase, a ssh-agent needs to be created and the passphrase be added as follows:
ssh-agent $SHELL
ssh-add
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.