Skip to content

Commit

Permalink
Format black
Browse files Browse the repository at this point in the history
  • Loading branch information
pyiron-runner committed Feb 5, 2024
1 parent b936ec6 commit 31be443
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions pysqa/ext/remote.py
Original file line number Diff line number Diff line change
Expand Up @@ -228,7 +228,11 @@ def _transfer_files(self, file_dict, sftp=None, transfer_back=False):
def _open_ssh_connection(self):
ssh = paramiko.SSHClient()
ssh.load_host_keys(self._ssh_known_hosts)
if self._ssh_key is not None and self._ssh_key_passphrase is not None and not self._ssh_ask_for_password:
if (
self._ssh_key is not None
and self._ssh_key_passphrase is not None
and not self._ssh_ask_for_password
):
ssh.connect(
hostname=self._ssh_host,
port=self._ssh_port,
Expand Down Expand Up @@ -260,7 +264,7 @@ def _open_ssh_connection(self):
hostname=self._ssh_host,
port=self._ssh_port,
username=self._ssh_username,
password=getpass.getpass(prompt='SSH Password: ', stream=None),
password=getpass.getpass(prompt="SSH Password: ", stream=None),
)
elif (
self._ssh_password is not None
Expand Down Expand Up @@ -307,7 +311,7 @@ def authentication(title, instructions, prompt_list):
hostname=self._ssh_host,
port=self._ssh_port,
username=self._ssh_username,
password=getpass.getpass(prompt='SSH Password: ', stream=None),
password=getpass.getpass(prompt="SSH Password: ", stream=None),
)
ssh._transport.auth_interactive_dumb(
username=self._ssh_username, handler=None, submethods=""
Expand Down

0 comments on commit 31be443

Please sign in to comment.