Reputation: 281
I've been trying to access some ec2 instances we have using the clusterssh in ubuntu, but it seems not possible.
Is it possible to use cssh with the keyfile?
Does anybody know a way to connect via ssh to multiple EC2 instances using the pem file and replicate commands in all of them?
I tried add the path to the file in the instance address but it didn't work.
Upvotes: 4
Views: 1382
Reputation: 281
I found a solution, just uncomment some lines at the config file and write the path to the pem file:
ssh_args= -i <path to pem file>
set the instances nickname to
node1 = user@host
and use the command cssh node1 node2
Upvotes: 3