Fix ssh options

This commit is contained in:
2026-03-19 20:20:59 -06:00
parent 042c22d150
commit 7ea4f50ab2

View File

@@ -65,11 +65,11 @@ class SSHConnector(Connector):
def _ssh_option_args(self) -> list:
result = []
if self.ssh_config_path:
result.extend(["-F", self.ssh_config_path])
result.extend(["-F", str(self.ssh_config_path)])
if self.ssh_user:
result.append("-oUser={self.ssh_user}")
result.append(f"-oUser={self.ssh_user}")
if self.ssh_port:
result.append("-oPort={self.ssh_port:d}")
result.append(f"-oPort={self.ssh_port:d}")
for k, v in self.extra_ssh_options.items():
assert "=" not in k
assert k