From 47963ebf6c5914203dc38e9b4e5918233e3d7ca6 Mon Sep 17 00:00:00 2001 From: kageru Date: Tue, 6 Feb 2018 18:09:03 +0100 Subject: [PATCH] =?UTF-8?q?the=20port=20is=20now=20properly=20passed=20as?= =?UTF-8?q?=20an=20SFTP=20argument.=20you=20totally=20can=E2=80=99t=20tell?= =?UTF-8?q?=20I=20changed=20the=20config=20of=20my=20server=20or=20somethi?= =?UTF-8?q?ng?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pyshare.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyshare.py b/pyshare.py index 366b684..43a33c4 100755 --- a/pyshare.py +++ b/pyshare.py @@ -73,7 +73,7 @@ def ftp_upload(sourcefile, *, mode=None, ext=None) -> tuple: else: ext = exts.get(mode, mode not in exts and sourcefile.split('.')[-1]) # Only do the split if necessary - with Connection(config.sftp_address, username=config.username, password=config.password, + with Connection(config.sftp_address, username=config.username, password=config.password, port=config.sftp_port, private_key=config.private_key, private_key_pass=config.private_key_pass) as conn: conn.chdir(config.remote_directory)