Fix ssh options
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user