Angeblich übergibt die Option -x von pssh zusätzliche SSH-Befehlszeilenargumente. SSHs "-t" -Option hätte sich um den "Pseudo-Terminal" -Fehler kümmern müssen. Gibt es eine andere PSSH/SSH-Option, die verwendet werden sollte?"Force psuedo-tty allocation" übersetzt nicht in pssh
# pssh -i -H [email protected] -H [email protected] -x "-t -i /tmp/key.pem" 'sudo hostname'
[1] 13:46:54 [FAILURE] [email protected] Exited with error code 1
Stderr: Pseudo-terminal will not be allocated because stdin is not a terminal.
sudo: sorry, you must have a tty to run sudo
[2] 13:46:54 [FAILURE] [email protected] Exited with error code 1
Stderr: Pseudo-terminal will not be allocated because stdin is not a terminal.
sudo: sorry, you must have a tty to run sudo
Ohne die „-t“ und die „sudo“, der Befehl funktioniert gut, aber ich brauche ein paar Befehle wie sudo auszuführen.
# pssh -i -H [email protected] -H [email protected] -x "-i /tmp/key.pem" 'hostname'
[1] 14:08:35 [SUCCESS] [email protected]
ip-10-0-0-140
[2] 14:08:35 [SUCCESS] [email protected]
ip-10-0-0-139
Obwohl das Trick gemacht hat, wird ein bizarrer Fehler erzeugt, aber der Fehler scheint die pssh-Ausführung nicht zu beeinflussen. – user2569618