Guest User

Untitled

a guest
Jul 25th, 2018
165
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.41 KB | None | 0 0
  1. Ssh communicator with paramiko
  2. ssh = paramiko.SSHClient()
  3. ssh.set_missing_host_key_policy(paramiko.AutoAddPolicy())
  4. ssh.connect(host, username=username, password=password)
  5. stdin, stdout, stderr = ssh.exec_command('ls -l')
  6. ssh.close()
  7.  
  8. userauth is OK
  9. transport._log() => Authentication type (publickey) not permitted.
  10. transport._log() => Allowed methods: ['password']
  11. transport._log() => EOF in transport thread
Add Comment
Please, Sign In to add comment