How to run sudo with parallel ssh
up vote
0
down vote
favorite
Linux: ubuntu 14.04.3 LTS
cat /tmp/passfile
ABCxyz123
sshpass -f /tmp/passfile parallel-ssh -I -A -h hostlist.txt "sudo -S ls -l /root" < /tmp/passfile
and the method described here in google discussion groups.google
outputs the error as:
[1] 01:07:25 [FAILURE] 10.0.4.194 Exited with error code 255
[2] 01:07:25 [FAILURE] 10.0.4.205 Exited with error code 255
in the remote server I'm trying to connect its /var/log/auth.log has below message
Sep 24 19:20:52 ubu1401 sshd[5765]: Accepted password for ubuntu from 10.0.4.1 port 55019 ssh2
Sep 24 19:20:52 ubu1401 sshd[5765]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Sep 24 19:21:26 ubu1401 sshd[5765]: pam_unix(sshd:session): session closed for user ubuntu
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): conversation failed
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): auth could not identify password for [ubuntu]
Sep 24 19:22:25 ubu1401 sshd[5791]: Connection closed by 10.0.4.1 [preauth]
linux ubuntu ssh parallel-ssh
add a comment |
up vote
0
down vote
favorite
Linux: ubuntu 14.04.3 LTS
cat /tmp/passfile
ABCxyz123
sshpass -f /tmp/passfile parallel-ssh -I -A -h hostlist.txt "sudo -S ls -l /root" < /tmp/passfile
and the method described here in google discussion groups.google
outputs the error as:
[1] 01:07:25 [FAILURE] 10.0.4.194 Exited with error code 255
[2] 01:07:25 [FAILURE] 10.0.4.205 Exited with error code 255
in the remote server I'm trying to connect its /var/log/auth.log has below message
Sep 24 19:20:52 ubu1401 sshd[5765]: Accepted password for ubuntu from 10.0.4.1 port 55019 ssh2
Sep 24 19:20:52 ubu1401 sshd[5765]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Sep 24 19:21:26 ubu1401 sshd[5765]: pam_unix(sshd:session): session closed for user ubuntu
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): conversation failed
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): auth could not identify password for [ubuntu]
Sep 24 19:22:25 ubu1401 sshd[5791]: Connection closed by 10.0.4.1 [preauth]
linux ubuntu ssh parallel-ssh
try adding-i -v
toparallel-ssh
to see if it provides any further clues.
– meuh
Sep 25 '16 at 19:43
add a comment |
up vote
0
down vote
favorite
up vote
0
down vote
favorite
Linux: ubuntu 14.04.3 LTS
cat /tmp/passfile
ABCxyz123
sshpass -f /tmp/passfile parallel-ssh -I -A -h hostlist.txt "sudo -S ls -l /root" < /tmp/passfile
and the method described here in google discussion groups.google
outputs the error as:
[1] 01:07:25 [FAILURE] 10.0.4.194 Exited with error code 255
[2] 01:07:25 [FAILURE] 10.0.4.205 Exited with error code 255
in the remote server I'm trying to connect its /var/log/auth.log has below message
Sep 24 19:20:52 ubu1401 sshd[5765]: Accepted password for ubuntu from 10.0.4.1 port 55019 ssh2
Sep 24 19:20:52 ubu1401 sshd[5765]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Sep 24 19:21:26 ubu1401 sshd[5765]: pam_unix(sshd:session): session closed for user ubuntu
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): conversation failed
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): auth could not identify password for [ubuntu]
Sep 24 19:22:25 ubu1401 sshd[5791]: Connection closed by 10.0.4.1 [preauth]
linux ubuntu ssh parallel-ssh
Linux: ubuntu 14.04.3 LTS
cat /tmp/passfile
ABCxyz123
sshpass -f /tmp/passfile parallel-ssh -I -A -h hostlist.txt "sudo -S ls -l /root" < /tmp/passfile
and the method described here in google discussion groups.google
outputs the error as:
[1] 01:07:25 [FAILURE] 10.0.4.194 Exited with error code 255
[2] 01:07:25 [FAILURE] 10.0.4.205 Exited with error code 255
in the remote server I'm trying to connect its /var/log/auth.log has below message
Sep 24 19:20:52 ubu1401 sshd[5765]: Accepted password for ubuntu from 10.0.4.1 port 55019 ssh2
Sep 24 19:20:52 ubu1401 sshd[5765]: pam_unix(sshd:session): session opened for user ubuntu by (uid=0)
Sep 24 19:21:26 ubu1401 sshd[5765]: pam_unix(sshd:session): session closed for user ubuntu
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): conversation failed
Sep 24 19:21:26 ubu1401 sudo: pam_unix(sudo:auth): auth could not identify password for [ubuntu]
Sep 24 19:22:25 ubu1401 sshd[5791]: Connection closed by 10.0.4.1 [preauth]
linux ubuntu ssh parallel-ssh
linux ubuntu ssh parallel-ssh
edited Sep 25 '16 at 2:45
agc
4,43311035
4,43311035
asked Sep 24 '16 at 19:26
satch_boogie
150111
150111
try adding-i -v
toparallel-ssh
to see if it provides any further clues.
– meuh
Sep 25 '16 at 19:43
add a comment |
try adding-i -v
toparallel-ssh
to see if it provides any further clues.
– meuh
Sep 25 '16 at 19:43
try adding
-i -v
to parallel-ssh
to see if it provides any further clues.– meuh
Sep 25 '16 at 19:43
try adding
-i -v
to parallel-ssh
to see if it provides any further clues.– meuh
Sep 25 '16 at 19:43
add a comment |
1 Answer
1
active
oldest
votes
up vote
0
down vote
have you tried running this via echoing the password in the shell?
echo "echo 'yourpassword'; sudo -S -c 'ls -l /root'"|pssh -I -H hostlist.txt
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
add a comment |
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
up vote
0
down vote
have you tried running this via echoing the password in the shell?
echo "echo 'yourpassword'; sudo -S -c 'ls -l /root'"|pssh -I -H hostlist.txt
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
add a comment |
up vote
0
down vote
have you tried running this via echoing the password in the shell?
echo "echo 'yourpassword'; sudo -S -c 'ls -l /root'"|pssh -I -H hostlist.txt
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
add a comment |
up vote
0
down vote
up vote
0
down vote
have you tried running this via echoing the password in the shell?
echo "echo 'yourpassword'; sudo -S -c 'ls -l /root'"|pssh -I -H hostlist.txt
have you tried running this via echoing the password in the shell?
echo "echo 'yourpassword'; sudo -S -c 'ls -l /root'"|pssh -I -H hostlist.txt
edited Oct 22 '16 at 8:06
answered Oct 21 '16 at 14:09
Alex
1114
1114
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
add a comment |
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
1
1
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
This does not provide an answer to the question. To critique or request clarification from an author, leave a comment below their post. - From Review
– countermode
Oct 21 '16 at 14:58
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
@countermode this is how I run pssh sudo. That basically answers the question in the headline: "How to run sudo with parallel ssh"
– Alex
Oct 21 '16 at 16:26
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
i used ansible instead of the parallel ssh (i wanted to check disk usage ,free memory etc)
– satch_boogie
Oct 22 '16 at 17:23
add a comment |
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2funix.stackexchange.com%2fquestions%2f312106%2fhow-to-run-sudo-with-parallel-ssh%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
Required, but never shown
try adding
-i -v
toparallel-ssh
to see if it provides any further clues.– meuh
Sep 25 '16 at 19:43