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)')