Skip to content

Instantly share code, notes, and snippets.

Last active Jul 5, 2016
What would you like to do?
from paramiko import SSHClient,AutoAddPolicy
from scp import SCPClient
HOST = ""
PORT = "22"
USER = "username"
PSWD = "password"
ssh = SSHClient()
ssh.connect(HOST, port=PORT, username=USER, password=PSWD)
scp = SCPClient(ssh.get_transport())
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment