Skip to content

Commit

Permalink
fix: add rsa log
Browse files Browse the repository at this point in the history
  • Loading branch information
cbini committed Dec 21, 2024
1 parent 0b97dc5 commit c547a37
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/teamster/libraries/powerschool/sis/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,13 @@ def open_ssh_tunnel(ssh_resource: SSHResource):
stdout = ssh_tunnel.stdout.readline()
ssh_resource.log.debug(msg=stdout)

if stdout == b"A secure connection to your server has been established.\n":
if stdout in [
(
f"Warning: Permanently added '[{ssh_resource.remote_host}]:"
f"{ssh_resource.remote_port}' (RSA) to the list of known hosts.\r\n"
).encode(),
b"A secure connection to your server has been established.\n",
]:
continue
elif stdout == b"To disconnect, simply close this window.\n":
break
Expand Down

0 comments on commit c547a37

Please sign in to comment.