Support Questions

Find answers, ask questions, and share your expertise

While creting PSSH getting below error ([1] 17:06:00 [FAILURE] 10.00.01 Exited with error code 255)

avatar
Expert Contributor

[root@centos ~]# pssh -v -t 0 -l root -h clusterhost.txt -x "-t -t -oStrickHostKeyChecking=no" 'touch testing'

[1] 17:06:00 [FAILURE] 10.00.01 Exited with error code 255

[2] 17:06:00 [FAILURE] 10.00.02 Exited with error code 255

[3] 17:06:00 [FAILURE] 10.00.03 Exited with error code 255

[4] 17:06:00 [FAILURE] 10.00.04 Exited with error code 255

[root@centos ~]#

1 ACCEPTED SOLUTION

avatar

@Shiv Kumar

try this command:-

pssh -v -h clusterhost.txt -l root -A -i "touch testing"--------->>>>------->>>>Added ip's in clusterhost.txt

And for the hostname this command is works:-

pssh -v -h "clusterhost.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch abc.txt" ------->>>>Added hostname in clusterhost.txt

Because this both command works for me.

If this this is the your answer, then let's close this.

View solution in original post

4 REPLIES 4

avatar
Super Collaborator

check your clusterhost.txt - did you provide correct IP addresses?? - 10.00.01 is not a valid ip address. You may have missed a '.' between 2 0's (10.0.0.1) instead??

Were you able to ssh to the hosts individually??

avatar
Expert Contributor

Yep i have given all correct IP for this , while pasting here i changed it.

avatar

@Shiv Kumar

try this command:-

pssh -v -h clusterhost.txt -l root -A -i "touch testing"--------->>>>------->>>>Added ip's in clusterhost.txt

And for the hostname this command is works:-

pssh -v -h "clusterhost.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch abc.txt" ------->>>>Added hostname in clusterhost.txt

Because this both command works for me.

If this this is the your answer, then let's close this.

avatar
Expert Contributor

Thanks for your reply it worked for me.

[root@ces ~]# pssh -v -h "host.txt" -A -i "-O StrictHostKeyChecking=no" -l root "touch sshkeys.txt"

Warning: do not enter your password if anyone else has superuser privileges or access to your account. Password:

[1] 18:04:48 [SUCCESS] cens

[2] 18:04:48 [SUCCESS] cent

[3] 18:04:48 [SUCCESS] cen

[4] 18:04:48 [SUCCESS] cen4

[root@centos ~]# ls -lrt

-rw-r--r-- 1 root root 31 Aug 2 18:01 host.txt -rw-r--r-- 1 root root 0 Aug 2 18:04 sshkeys.txt