You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 5c0ba1d
Browse filesBrowse the repository at this point in the historyBrowse files
fix(ssh): double-quote ProxyCommand values for open-remote-ssh (#1156)
Editors built on open-remote-ssh (Positron, VSCodium) split the SSH
ProxyCommand themselves instead of running it through a shell. Since
1.17.0 they passed the single-quoted --url and --global-config to the
CLI literally, and ssh-config@5 merged `--token=` with the next
argument, so every connection failed with "Premature close".
- Quote ProxyCommand values with double quotes unless they contain
`$`, a backtick, `\`, `%` or a line break; those keep single quotes.
- Quote a leading, trailing or doubled `=` in escapeCommandArg.
- On Windows, escape `"` in escapeShellArg as `\"` with doubled
preceding backslashes, so the Go CLI reads a header command
containing quotes as one argument.
Closes#1153
0 commit comments