Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ---------------------------------------------------------------------------
- BadAuthenticationType Traceback (most recent call last)
- <ipython-input-5-bf483dfa945b> in <module>()
- 39
- 40
- ---> 41 ship = sftp_client(ip,un,pw,localdir)
- <ipython-input-5-bf483dfa945b> in __init__(self, ip, un, pw, localdir)
- 27 self.ssh.load_system_host_keys()
- 28
- ---> 29 self.ssh.connect(ip,username=un, password=pw, key_filename="E:/centos.pub")
- 30
- 31 self.sftp = self.ssh.open_sftp()
- 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)
- 378 gss_host = hostname
- 379 self._auth(username, password, pkey, key_filenames, allow_agent,
- --> 380 look_for_keys, gss_auth, gss_kex, gss_deleg_creds, gss_host)
- 381
- 382 def close(self):
- 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)
- 601 # if we got an auth-failed exception earlier, re-raise it
- 602 if saved_exception is not None:
- --> 603 raise saved_exception
- 604 raise SSHException('No authentication methods available')
- 605
- 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