Advertisement
Guest User

Untitled

a guest
Mar 9th, 2019
114
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. import ssh
  2. import gnupg
  3. import pickle
  4.  
  5. s = ssh.Connection(host = 'ipaddress', username = 'toolserv', password = 'xxxx')
  6.  
  7. gpg = gnupg.GPG(gnupghome="/home/toolserv/.gnupg")
  8.  
  9. with open("result1.txt", "r") as my_file:
  10. signed_data1 = pickle.load(my_file)
  11. my_file.close()
  12.  
  13. print signed_data1
  14.  
  15. s.close()
  16.  
  17. Traceback (most recent call last):
  18. File "sshx.py", line 11, in <module>
  19. with open("result1.txt", "r") as my_file:
  20. IOError: [Errno 2] No such file or directory: 'result1.txt
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement