diff --git a/client/devkit_client/__init__.py b/client/devkit_client/__init__.py index 3aac336b413ebb6905fda1c585c7e642ad961f0a..e29256e1f2e41ed3fdb4c0c54b787fe3ab646392 100644 --- a/client/devkit_client/__init__.py +++ b/client/devkit_client/__init__.py @@ -615,12 +615,9 @@ class DevkitClient(object): # NOTE: this is the path to the ssh client, and may contain spaces (especially likely on windows) self.ssh ] - if self.ssh_known_hosts is not None: - cmd += [ - '-o', f'UserKnownHostsFile={self.ssh_known_hosts}', - ] cmd += [ '-o', 'StrictHostKeyChecking=no', + '-o', 'UserKnownHostsFile=/dev/null', '-o', 'IdentitiesOnly=yes', '-t', '-i', self.keypath, @@ -628,20 +625,6 @@ class DevkitClient(object): ] return cmd - def live_ssh_command(self, username, ipaddress, command): - logger.debug('%s@%s: %s', username, ipaddress, command) - cmd = self.remote_shell_command(username, ipaddress) - cmd.append(command) - exit_status = subprocess.call( - cmd, - creationflags=SUBPROCESS_CREATION_FLAGS - ) - - logger.info("exit status is %d", exit_status) - - if exit_status != 0: - raise subprocess.CalledProcessError(exit_status, command) - def ssh_command( self, username, ipaddress, command, stdindata, stream_output_to=None