pysftp - PyPI
pypi.org › project › pysftpJul 05, 2016 · See pysftp.CnOpts.hostkeys added pysftp.Connection.remote_server_key - used to retrieve the remote hosts server key. added support for enabling compression, compression (J. Kruth) added .active_compression, to return the active local and remote compression settings as a tuple
pysftp - PyPI
https://pypi.org/project/pysftp05.07.2016 · Now, be default pysftp will verify the host. See pysftp.CnOpts.hostkeys. added pysftp.Connection.remote_server_key - used to retrieve the remote hosts server key. fixed an unwanted logging side-effect, after you set logging, it would remain, even if you closed the .Connection and couldn’t be changed to something else.
Cook Book — pysftp 0.2.9 documentation
pysftp.readthedocs.io › en › release_0import pysftp cnopts = pysftp.CnOpts() cnopts.hostkeys.load('path/to/your/extra_knownhosts') with pysftp.Connection('host', username='me', password='pass', cnopts=cnopts): # do stuff here For both the knownhost parameter and the load argument, pysftp expands user, so you can use tilde notation in your pathing.