diff options
| author | Loic Guegan <manzerbredes@mailbox.org> | 2023-10-29 09:29:10 +0100 |
|---|---|---|
| committer | Loic Guegan <manzerbredes@mailbox.org> | 2023-10-29 09:29:10 +0100 |
| commit | 38019cabe817fe0d771391d68b76dcf565c0faaf (patch) | |
| tree | 0fa0fadbd820aa6b160df28276bdc0444a786a1c | |
| parent | 004d249307d0857373df6a77bf0295f007622d47 (diff) | |
Minor changes
| -rw-r--r-- | clusterman/commands/node.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/clusterman/commands/node.py b/clusterman/commands/node.py index 59fbdc5..9c7be5f 100644 --- a/clusterman/commands/node.py +++ b/clusterman/commands/node.py @@ -90,9 +90,9 @@ def exec(command, group=None): for ip in nodes: print("----- Node {} -----".format(ip)) if len(key_path)>0: - output=subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)]) + output=subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "-i", CONF["ssh"]["key_path"],"{}@{}".format(user,ip), " ".join(command)]) print(output.decode("utf-8"),end="") else: - output=subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "{}@{}".format(user,ip), " ".join(command)]) + output=subprocess.check_output(["ssh","-o", "StrictHostKeyChecking=no", "-o", "PasswordAuthentication=no", "{}@{}".format(user,ip), " ".join(command)]) print(output.decode("utf-8"),end="") |
