Sep-04-2018, 01:59 PM
try
import spur import spur.ssh try: shell = spur.SshShell(hostname="EDQDVTAPP01.XXXXXX.com",port=22,username="applogs",password="XXXXXX",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
If you can't explain it to a six year old, you don't understand it yourself, Albert Einstein
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs
How to Ask Questions The Smart Way: link and another link
Create MCV example
Debug small programs