From c68e78d356076c660e2a6e1ad37b2fd7bcb13efb Mon Sep 17 00:00:00 2001 From: John Hollowell Date: Thu, 11 Aug 2022 00:37:49 -0400 Subject: [PATCH] Convert port to string for SCP command building --- openssh_wrapper.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/openssh_wrapper.py b/openssh_wrapper.py index 741da66..a421017 100644 --- a/openssh_wrapper.py +++ b/openssh_wrapper.py @@ -369,7 +369,7 @@ def scp_command(self, files, target): if self.identity_file: cmd += ['-i', self.identity_file] if self.port: - cmd += ['-P', self.port] + cmd += ['-P', str(self.port)] if isinstance(files, (text, bytes)): raise ValueError('"files" argument have to be iterable (list or tuple)')