clan-cli: set ssh port for nix copy

This commit is contained in:
lassulus
2025-02-26 10:36:15 +01:00
committed by clan-bot
parent 48c08a0f62
commit 669a28c4e5

View File

@@ -166,6 +166,8 @@ class Host:
self,
) -> list[str]:
ssh_opts = ["-A"] if self.forward_agent else []
if self.port:
ssh_opts.extend(["-p", str(self.port)])
for k, v in self.ssh_options.items():
ssh_opts.extend(["-o", f"{k}={shlex.quote(v)}"])