teliduxing008
teliduxing008
stderr': 'sudo: no tty present and no askpass program specified\n', 'stdout': 'ERROR: sudo expected a password, NOPASSWD required'},
raise salt.exceptions.SaltClientError('salt-ssh could not be run because it could not generate keys.\n\nYou can probably resolve this by executing this script with increased permissions via sudo or by running as root.\nYou...
salt-ssh --user='robin' --passwd='robinhan' --roster=scan '192.168.75.176' test.ping -i  but: from salt.client.ssh.client import SSHClient client = SSHClient(c_path='/etc/salt/master') client.cmd(tgt='192.168.75.176',fun='test.ping',ssh_user='robin',ssh_passwd='robinhan',roster='scan') Error: /usr/bin/python /home/robin/PycharmProjects/untitled/salt-ssh.py Traceback (most recent call last): File "/home/robin/PycharmProjects/untitled/salt-ssh.py", line 7, in...
@Ch3LL yes,ok,thanks。
My script is ok when the terminal is running, but it does not work in pychram-ide, but I need to test if the separate salt-master and salt-ssh frameworks can control...
ok,thanks Robin