Advertisement
Guest User

Untitled

a guest
Jul 8th, 2016
71
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. lista = ['11.111.111.111','22.222.222.222','3.333.333.333']
  2.  
  3. ip = lista[0]
  4.  
  5. while lista != 44.444.444.44:
  6.  
  7. username = raw_input("Username:") password = getpass.getpass("Password: ")
  8.  
  9. remote_conn_pre = paramiko.SSHClient() remote_conn_pre.set_missing_host_key_policy(paramiko.AutoAddPolicy()) remote_conn_pre.connect(ip, username=username, password=password)
  10.  
  11. remote_conn = remote_conn_pre.invoke_shell() output = remote_conn.recv(5000)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement