Hide Forgot
Ran into this on Rawhide this morning: [adamw@adam Videos]$ scp "Screencast from 16-12-13 10:32:18 AM.webm" www:/home/adamw Usage: sss_ssh_knownhostsproxy [-?] [-?|--help] [--usage] [-p|--port=INT] [-d|--domain=STRING] HOST [PROXY_COMMAND] The path to the proxy command must be absolute ssh_exchange_identification: Connection closed by remote host [adamw@adam Videos]$ mv Screencast\ from\ 16-12-13\ 10\:32\:18\ AM.webm alt-kat.webm [adamw@adam Videos]$ scp alt-kat.webm www:/home/adamw alt-kat.webm 100% 898KB 897.6KB/s 00:00 seems quite self-explanatory - the scp explodes in sss_ssh_knownhostproxy when I'm trying to transfer a file with a 'complex' name (I'm guessing it's the spaces), works fine when I rename the file to be simple (short, ascii, no spaces).
[root@adam Videos]# rpm -q sssd-common sssd-common-1.11.2-1.fc21.x86_64
This is not related to sss_ssh_knownhostsproxy, scp will fail without sss_ssh_knownhostsproxy as well: $ scp "Screencast from 16-12-13 10:32:18 AM.webm" vm-143:file ssh: Could not resolve hostname Screencast from 16-12-13 10: Name or service not known As you can see, scp considers the part of the filename before the first colon to be a hostname ("Screencast from 16-12-13 10" in this case).
oh, man, I totally knew that and forgot about it. Probably some way around it with a double escape or something. sorry.
scp is really a bad hack, sftp is what shoud be used. Maybe I should write a scp binary which uses sftp from libssh one day.