Guest User

Untitled

a guest
Jul 11th, 2018
81
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. import paramiko
  2. import time
  3. import os
  4. import datetime
  5. from openpyxl import Workbook
  6. from openpyxl import load_workbook
  7. from inspect import getsourcefile
  8. from os.path import abspath
  9. from subprocess import Popen
  10.  
  11. gateLink = paramiko.SSHClient()
  12. gateLink.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  13. deviceName = 'systemthing'
  14. userName = 'steve'
  15. password = 'something'
  16. gateLink.connect(deviceName, username=userName, password=passWord)
  17. talkGate = gateLink.invoke_shell()
  18.  
  19. #Rest of program goes here...
Add Comment
Please, Sign In to add comment