Guest User

Untitled

a guest
Sep 18th, 2018
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.35 KB | None | 0 0
  1. import paramiko
  2. dssh = paramiko.SSHClient()
  3. dssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  4. dssh.connect("IPv6_Address", username="root", password="orange")
  5. stdin,stdout,stderr=dssh.exec_command("pwd")
  6. print(stdout.read())
  7.  
  8. sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
  9. sock.connect((hostname, port))
  10. t = paramiko.Transport(sock)
Add Comment
Please, Sign In to add comment