diff --git a/ted_sws/notice_publisher/adapters/sftp_notice_publisher.py b/ted_sws/notice_publisher/adapters/sftp_notice_publisher.py index 55fb54a4..7a40dbc3 100644 --- a/ted_sws/notice_publisher/adapters/sftp_notice_publisher.py +++ b/ted_sws/notice_publisher/adapters/sftp_notice_publisher.py @@ -34,7 +34,7 @@ def connect(self): ssh_client = paramiko.SSHClient() ssh_client.set_missing_host_key_policy(paramiko.AutoAddPolicy()) - ssh_client.connect(self.hostname, username=self.username, + ssh_client.connect(self.hostname, username=self.username, password=self.password, pkey=self.private_key, port=self.port) self._ssh = ssh_client self._sftp = ssh_client.open_sftp()