teliduxing008

Results comments of 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 ![image](https://user-images.githubusercontent.com/19639945/35324682-63737362-012c-11e8-8614-f5c52bc39754.png) 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...

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...