Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- import select
- ssh=paramiko.SSHClient()
- ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- ssh.connect(hostname,username=username,password=password)
- transport = ssh.get_transport()
- channel = transport.open_session()
- stdin,stdout,stderr = ssh.exec_command(command)
- print stdout.readlines()
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement