Created
March 8, 2021 06:10
-
-
Save nim4n136/c5182e3dd170ab54af248db635cfeb97 to your computer and use it in GitHub Desktop.
Pysftp sample
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import pysftp | |
credentials = { | |
"host":'xx', | |
"username": 'xx', | |
"password": 'xx' | |
} | |
cnopts = pysftp.CnOpts() | |
cnopts.hostkeys = None | |
with pysftp.Connection(**credentials, cnopts=cnopts) as conn: | |
conn.cwd('xx') | |
conn.get('xx', "xx") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment