-
Notifications
You must be signed in to change notification settings - Fork 781
UserKnownHostsFile parameter problems specifying paths with W #1784
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I can confirm this issue, seams that Issue 1211 ist not fixed. |
This does appear to still be broken -- affected the Steam Deck devkit utility on windows: https://steamcommunity.com/groups/steamworks/discussions/27/3731827313770208491/ (we now ship a workaround that double-quotes everything) |
This is also an issue on non-Windows machines as well. For example, have a symlink target of This is inherent to SSH itself. The only reason I'm posting here is because it does not seem to be mentioned anywhere in the Linux or Unix worlds. The problem seems related to how |
This issue was infuriating; I'm glad to see it's an open bug and not me going insane. It also impacts Also, from the referenced issue, it's a problem from |
Only this weird construct works:
ssh -v -o'UserKnownHostsFile="""C:\Program Files\whitespace test\known_hosts"""' -i 'C:\Program Files\whitespace test\id_ecdsa' user@ip
Nothing else worked for me so far when specifying a path with whitespaces via PowerShell.
The -i parameter on the other side is capable of processing paths with a whitespace.
More badly, when executing the above command that works in PowerShell within a PowerShell module, we get:
command-line: line 0: Bad configuration option: 'userknownhostsfile
So executing an SSH command that contains a user known hosts path with whitespace within a PS module does not work at all.
Observed on:
Windows PowerShell 5.1 (Build 19041, Revision 906)
Windows 10 Enterprise
OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 (FileVersion: 7.7.2.1)
The text was updated successfully, but these errors were encountered: