From 93957b18c70097938d1a986811d57c9d30792f19 Mon Sep 17 00:00:00 2001 From: lassulus Date: Mon, 22 Apr 2024 20:21:44 +0200 Subject: [PATCH] clan-cli ssh: fix qr code format --- pkgs/clan-cli/clan_cli/ssh/cli.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pkgs/clan-cli/clan_cli/ssh/cli.py b/pkgs/clan-cli/clan_cli/ssh/cli.py index d793d806f..491afb44c 100644 --- a/pkgs/clan-cli/clan_cli/ssh/cli.py +++ b/pkgs/clan-cli/clan_cli/ssh/cli.py @@ -85,15 +85,15 @@ def is_reachable(host: str) -> bool: def connect_ssh_from_json(ssh_data: dict[str, str]) -> None: - for address in ssh_data["addrs"]: + for address in ssh_data["local_addresses"]: log.debug(f"Trying to reach host on: {address}") if is_reachable(address): - ssh(host=address, password=ssh_data["pass"]) + ssh(host=address, password=ssh_data["password"]) exit(0) else: log.debug(f"Could not reach host on {address}") log.debug(f'Trying to reach host via torify on {ssh_data["tor"]}') - ssh(host=ssh_data["tor"], password=ssh_data["pass"], torify=True) + ssh(host=ssh_data["tor"], password=ssh_data["password"], torify=True) def main(args: argparse.Namespace) -> None: