Sep-05-2018, 07:16 AM
hi All,
I am getting same error.
I am getting same error.
import spur import spur.ssh try: shell = spur.SshShell(hostname="EDQDVTAPP01.XXXXX.com",port=22,username="applogs",password="XXXXX",missing_host_key=spur.ssh.MissingHostKey.accept) with shell: result = shell.run(["ls"]) print (result) except spur.ssh.ConnectionError as error: print (error.original_traceback) raise
Error:Traceback (most recent call last):
File "unix_server_test.py", line 25, in <module>
result = shell.run(["ls"])
File "C:\Users\pubhatia\AppData\Local\Programs\Python\Python36\lib\site-packages\spur\ssh.py", line 166, in run
return self.spawn(*args, **kwargs).wait_for_result()
File "C:\Users\pubhatia\AppData\Local\Programs\Python\Python36\lib\site-packages\spur\ssh.py", line 206, in spawn
raise NoSuchCommandError(command[0])
spur.errors.NoSuchCommandError: Command not found: ls. Check that ls is installed and on $PATH