Originally reported by Matěj Habrnál. Version-Release number of selected component (if applicable): curl-7.60.0-1.fc29.x86_64 Actual results: % timeout 4 curl scp://localhost/~/tmp -svT/etc/fstab --key does-not-exist || echo $? * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 22 (#0) * User: * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist 124 % timeout 4 curl sftp://localhost/~/tmp -svT/etc/fstab --key does-not-exist || echo $? * Trying ::1... * TCP_NODELAY set * Connected to localhost (::1) port 22 (#0) * User: * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist * Could not load private key file does-not-exist 124
This bug appears to have been reported against 'rawhide' during the Fedora 29 development cycle. Changing version to '29'.
I have proposed a fix upstream: https://github.com/curl/curl/pull/2879
upstream commits: https://github.com/curl/curl/commit/1e843a31 https://github.com/curl/curl/commit/a4c7911a
downstream commit: https://src.fedoraproject.org/cgit/rpms/curl.git/commit/?id=023b327a