-
Notifications
You must be signed in to change notification settings - Fork 798
Description
"OpenSSH for Windows" version
v7.6.1.0p1-Beta
Server OperatingSystem
Linux - Ubuntu
Client OperatingSystem
Windows 10 Enterprise
What is failing
When launching ssh and scp from another process, I'm passing in arguments to specify a known hosts file and key. Note I'm not launching these as a shell process.
For ssh,
Command = C:\PathToSSH\ssh.exe
Args = [
-FNUL -ic:\space test\ssh\id_rsa,
-oStrictHostKeyChecking=yes,
-oUserKnownHostsFile="c:\space test\ssh\known_hosts",
myuser@myserver
]
For scp,
Command = C:\PathToSSH\scp.exe
Args = [
-FNUL -ic:\space test\ssh\id_rsa,
-oStrictHostKeyChecking=yes,
-oUserKnownHostsFile="c:\space test\ssh\known_hosts",
sourcefile myuser@myserver:/targetlocation/
]
Expected output
Both commands succeed.
Actual output
The ssh commmand works as expected.
The scp command fails with this error:
ssh: Could not resolve hostname test/ssh/known_hosts: No such host is known.
Since scp appears to invoke ssh, it appears that it is not properly passing in the path with spaces.