clan-cli: Fixup clan install which depends on ssh_parseargs.

clan-cli: Remove --ssh-option for now, as it can't work in current state

clan-cli: Remove nix_config from test as its impure
This commit is contained in:
Qubasa
2025-07-14 20:39:33 +07:00
parent 9630b6dbe4
commit e8b5e2c2c5
4 changed files with 22 additions and 17 deletions

View File

@@ -454,7 +454,7 @@ class Remote:
@dataclass(frozen=True)
class ConnectionOptions:
timeout: int = 2
retries: int = 10
retries: int = 5
@dataclass
@@ -527,6 +527,10 @@ def check_machine_ssh_reachable(
if opts is None:
opts = ConnectionOptions()
cmdlog.debug(
f"Checking SSH reachability for {remote.target} on port {remote.port or 22}",
)
address_family = socket.AF_INET6 if ":" in remote.address else socket.AF_INET
for _ in range(opts.retries):
with socket.socket(address_family, socket.SOCK_STREAM) as sock: