Advertisement
Guest User

Untitled

a guest
Aug 18th, 2016
155
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.71 KB | None | 0 0
  1. ---------------------------------------------------------------------------
  2. BadAuthenticationType                   Traceback (most recent call last)
  3. <ipython-input-5-bf483dfa945b> in <module>()
  4.     39
  5.     40
  6. ---> 41 ship = sftp_client(ip,un,pw,localdir)
  7.  
  8. <ipython-input-5-bf483dfa945b> in __init__(self, ip, un, pw, localdir)
  9.     27         self.ssh.load_system_host_keys()
  10.     28
  11. ---> 29         self.ssh.connect(ip,username=un, password=pw, key_filename="E:/centos.pub")
  12.     30
  13.     31         self.sftp = self.ssh.open_sftp()
  14.  
  15. C:\Users\ML\Anaconda2\Lib\site-packages\paramiko\client.pyc in connect(self, hostname, port, username, password, pkey, key_filename, timeout, allow_agent, look_for_keys, compress, sock, gss_auth, gss_kex, gss_deleg_creds, gss_host, banner_timeout)
  16.    378             gss_host = hostname
  17.    379         self._auth(username, password, pkey, key_filenames, allow_agent,
  18. --> 380                    look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
  19.    381
  20.    382     def close(self):
  21.  
  22. C:\Users\ML\Anaconda2\Lib\site-packages\paramiko\client.pyc in _auth(self, username, password, pkey, key_filenames, allow_agent, look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
  23.    601         # if we got an auth-failed exception earlier, re-raise it
  24.    602         if saved_exception is not None:
  25. --> 603             raise saved_exception
  26.    604         raise SSHException('No authentication methods available')
  27.    605
  28.  
  29. BadAuthenticationType: ('Bad authentication type', [u'publickey', u'gssapi-keyex', u'gssapi-with-mic']) (allowed_types=[u'publickey', u'gssapi-keyex', u'gssapi-with-mic'])
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement