0
我試圖連接到SFTP服務器通過Pysftp模塊使用下面的代碼未實現的錯誤 - PySftp
a = pysftp.Connection('xx.yyy.zz.abc',username='abcd',password='[email protected]',log=True)
這將引發
NotImplementedError Traceback (most recent call last)
<ipython-input-6-5d0f8343a8c2> in <module>()
----> 1 a = pysftp.Connection('xx.yyy.zz.abc',username='abcd',password='[email protected]',log=True)
C:\Python27\lib\site-packages\pysftp.pyc in __init__(self, host, username, private_key, password, port, private_key_pass, ciphers, log)
160 if password is not None:
161 # Using Password.
--> 162 self._transport.connect(username=username, password=password)
163 else:
164 # Use Private Key.
C:\Python27\lib\site-packages\paramiko-1.15.2-py2.7.egg\paramiko\transport.pyc in connect(self, hostkey, username, password, pkey, gss_host, gss_auth, gss_kex, gss_deleg_creds)
976 self._preferred_keys = [hostkey.get_name()]
977
--> 978 self.start_client()
979
980 # check host key if we were given one
C:\Python27\lib\site-packages\paramiko-1.15.2-py2.7.egg\paramiko\transport.pyc in start_client(self, event)
404 e = self.get_exception()
405 if e is not None:
--> 406 raise e
407 raise SSHException('Negotiation failed.')
408 if event.is_set():
NotImplementedError: Use module Crypto.Signature.pkcs1_15 instead
我一直在使用這下面的錯誤幾個月的代碼行,但這個錯誤最近纔出現。
即使現在我也可以使用WINSCP連接到端口。
感謝您的幫助