Skip to content

Instantly share code, notes, and snippets.

View William-Brumble's full-sized avatar
⚠️
[object Object]

0x26B William-Brumble

⚠️
[object Object]
View GitHub Profile
@TheFern2
TheFern2 / SSH.py
Created January 11, 2023 22:10
paramiko ssh sudo and scp
import logging
from paramiko import SSHClient, AutoAddPolicy
from scp import SCPClient
class SshClient:
def __init__(self, ssh_machine, ssh_username, ssh_password):
self.ssh_machine = ssh_machine
self.ssh_username = ssh_username
self.ssh_password = ssh_password