Removed ssh password login

This commit is contained in:
Qubasa
2024-05-12 12:39:19 +02:00
parent 49e39ec505
commit be841cdec2
3 changed files with 12 additions and 20 deletions

View File

@@ -191,6 +191,10 @@ def flash_command(args: argparse.Namespace) -> None:
if ask == "y":
pubkeys = list_available_ssh_keys()
root_keys.extend(read_public_key_contents(pubkeys))
else:
raise ClanError(
"No SSH public keys provided. Use --ssh-pubkey to add keys."
)
elif not opts.confirm and not root_keys:
pubkeys = list_available_ssh_keys()
root_keys.extend(read_public_key_contents(pubkeys))