diff --git a/src/remote.ts b/src/remote.ts index 8e5a5eab..4a13ae56 100644 --- a/src/remote.ts +++ b/src/remote.ts @@ -677,7 +677,7 @@ export class Remote { this.storage.writeToCoderOutputChannel( `SSH proxy diagnostics are being written to ${logDir}`, ); - return ` --log-dir ${escape(logDir)}`; + return ` --log-dir ${escapeCommandArg(logDir)}`; } // updateSSHConfig updates the SSH configuration with a wildcard that handles