clan-cli: Expose private_key to Machine class, in the future we should merge Machine and Host class

This commit is contained in:
Qubasa
2025-04-25 13:38:03 +02:00
parent 1b49751144
commit f1a7f2aa69
5 changed files with 15 additions and 9 deletions

View File

@@ -1,5 +1,6 @@
import os
import pwd
from pathlib import Path
import pytest
from clan_cli.ssh.host import Host
@@ -15,7 +16,7 @@ def hosts(sshd: Sshd) -> list[Host]:
"127.0.0.1",
port=sshd.port,
user=login,
key=sshd.key,
private_key=Path(sshd.key),
host_key_check=HostKeyCheck.NONE,
)
]