test rig command and other improvements to automation

Signed-off-by: Matthew Stidham <stidmatt@gmail.com>
This commit is contained in:
Matthew Stidham
2021-06-24 16:53:22 -07:00
parent 385a3d2c21
commit d1e4351b70
4 changed files with 85 additions and 11 deletions

View File

@@ -9,7 +9,7 @@ class lanforge_reports:
ssh = paramiko.SSHClient()
ssh.load_system_host_keys()
ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
ssh.connect(hostname=hostname, username=username, password=password, port=port)
ssh.connect(hostname=hostname, username=username, password=password, port=port, allow_agent=False, look_for_keys=False)
with SCPClient(ssh.get_transport()) as scp:
scp.get(remote_path=report_location, local_path=local_path, recursive=True)