diff --git a/diagnose.py b/diagnose.py index 2577fa0..d0879ec 100644 --- a/diagnose.py +++ b/diagnose.py @@ -78,7 +78,7 @@ class DiagnosticsRunner: f'ssh -o StrictHostKeyChecking=accept-new -o ConnectTimeout=5 ' f'-o BatchMode=yes -o LogLevel=ERROR ' f'-o ServerAliveInterval=10 -o ServerAliveCountMax=2 ' - f'root@{ip_q} \'{remote_cmd}\'' + f'root@{ip_q} {shlex.quote(remote_cmd)}' ) # ------------------------------------------------------------------