diff --git a/netmiko/linux/linux_ssh.py b/netmiko/linux/linux_ssh.py index f4364fbbe..ed88de35a 100644 --- a/netmiko/linux/linux_ssh.py +++ b/netmiko/linux/linux_ssh.py @@ -211,7 +211,7 @@ def remote_md5( remote_file = self.source_file remote_md5_cmd = f"{base_cmd} {self.file_system}/{remote_file}" dest_md5 = self.ssh_ctl_chan._send_command_str(remote_md5_cmd, read_timeout=300) - dest_md5 = self.process_md5(dest_md5).strip() + dest_md5 = self.process_md5(dest_md5.strip()).strip() return dest_md5 @staticmethod