Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import paramiko
- dssh = paramiko.SSHClient()
- dssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
- dssh.connect("IPv6_Address", username="root", password="orange")
- stdin,stdout,stderr=dssh.exec_command("pwd")
- print(stdout.read())
- sock = socket.socket(socket.AF_INET6, socket.SOCK_STREAM)
- sock.connect((hostname, port))
- t = paramiko.Transport(sock)
Add Comment
Please, Sign In to add comment