@@ -228,7 +228,11 @@ def _transfer_files(self, file_dict, sftp=None, transfer_back=False):
228228 def _open_ssh_connection (self ):
229229 ssh = paramiko .SSHClient ()
230230 ssh .load_host_keys (self ._ssh_known_hosts )
231- if self ._ssh_key is not None and self ._ssh_key_passphrase is not None and not self ._ssh_ask_for_password :
231+ if (
232+ self ._ssh_key is not None
233+ and self ._ssh_key_passphrase is not None
234+ and not self ._ssh_ask_for_password
235+ ):
232236 ssh .connect (
233237 hostname = self ._ssh_host ,
234238 port = self ._ssh_port ,
@@ -260,7 +264,7 @@ def _open_ssh_connection(self):
260264 hostname = self ._ssh_host ,
261265 port = self ._ssh_port ,
262266 username = self ._ssh_username ,
263- password = getpass .getpass (prompt = ' SSH Password: ' , stream = None ),
267+ password = getpass .getpass (prompt = " SSH Password: " , stream = None ),
264268 )
265269 elif (
266270 self ._ssh_password is not None
@@ -307,7 +311,7 @@ def authentication(title, instructions, prompt_list):
307311 hostname = self ._ssh_host ,
308312 port = self ._ssh_port ,
309313 username = self ._ssh_username ,
310- password = getpass .getpass (prompt = ' SSH Password: ' , stream = None ),
314+ password = getpass .getpass (prompt = " SSH Password: " , stream = None ),
311315 )
312316 ssh ._transport .auth_interactive_dumb (
313317 username = self ._ssh_username , handler = None , submethods = ""
0 commit comments