Sometimes the message is different. I think it depends on the recipient server. Trying to scp to a dropbear ssh server on a router gives
sh: /opt/libexec/sftp-server: not found
scp: Connection closed
The -O resolution works.Yeah, regardless of how one feels about the design decision to fail without fallback, the messaging seems like an oversight.
Yes, please and thanks. And I want a single line explaining how it is failing so I can copy paste it into Google and make the trivial fix. I don't want the beginning of a novel. Java was famous for dumping not only the relevant error message but it's entire family history since birth.
(Sorry, I hate that it has a political reference, but it's really how I feel about this. How the heck is that error message supposed to mean anything to anyone?)