From 669a28c4e5cabe70958258e9d1fff34d86c289d3 Mon Sep 17 00:00:00 2001 From: lassulus Date: Wed, 26 Feb 2025 10:36:15 +0100 Subject: [PATCH] clan-cli: set ssh port for nix copy --- pkgs/clan-cli/clan_cli/ssh/host.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pkgs/clan-cli/clan_cli/ssh/host.py b/pkgs/clan-cli/clan_cli/ssh/host.py index 778fd843e..72eb69ed8 100644 --- a/pkgs/clan-cli/clan_cli/ssh/host.py +++ b/pkgs/clan-cli/clan_cli/ssh/host.py @@ -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)}"])