Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- import time
- import os
- import datetime
- from openpyxl import Workbook
- from openpyxl import load_workbook
- from inspect import getsourcefile
- from os.path import abspath
- from subprocess import Popen
- gateLink = paramiko.SSHClient()
- gateLink.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- deviceName = 'systemthing'
- userName = 'steve'
- password = 'something'
- gateLink.connect(deviceName, username=userName, password=passWord)
- talkGate = gateLink.invoke_shell()
- #Rest of program goes here...
Add Comment
Please, Sign In to add comment