Skip to content

Commit

Permalink
fix indents for rsa key enabled login to hoffman2
Browse files Browse the repository at this point in the history
  • Loading branch information
WinstonGee committed Apr 10, 2024
1 parent 9498a62 commit 4c5db74
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions autoqchem/helper_functions.py
Original file line number Diff line number Diff line change
Expand Up @@ -78,10 +78,10 @@ def ssh_connect_pem(host, user, pem_path) -> fabric.Connection:

try:
if pem_path:
client.connect(host,username=user,key_filename=pem_path)
else:
client.connect(host,username=user)
client.get_transport().auth_password(username=user,password=getpass.getpass(f"{user}@{host}'s password:"))
client.connect(host,username=user,key_filename=pem_path)
else:
client.connect(host,username=user)
client.get_transport().auth_password(username=user,password=getpass.getpass(f"{user}@{host}'s password:"))
except paramiko.ssh_exception.SSHException:
pass

Expand Down

0 comments on commit 4c5db74

Please sign in to comment.