# dnf install ssh://foo/tmp/bar.rpm
Last metadata expiration check: 0:00:41 ago on Sun 16 Jan 2022 09:21:19 GMT.
[MIRROR] bar.rpm: Curl error (1): Unsupported protocol for ssh://foo/tmp/bar.rpm [Protocol
"ssh" not supported or disabled in libcurl]
I'm trying to work out if it's possible to make this work by adjusting
the dnf configuration. I'm going to say _no_ because the list of
allowed protocols is hard-coded in a couple of places:
https://github.com/rpm-software-management/dnf/blob/b831cbd50bb04ace86a90...
https://github.com/rpm-software-management/dnf/blob/b831cbd50bb04ace86a90...
However the error message seems to indicate that the restriction
is being enforced by curl itself using this mechanism:
https://curl.se/libcurl/c/CURLOPT_PROTOCOLS.html
I cannot see where dnf calls curlopt at all - perhaps it's in a
different library?
Anyway I think it'd be nice to support ssh, and should be safe. (ftp
is allowed at the moment, so presumably security isn't high on the
list of current concerns).
Rich.
--
Richard Jones, Virtualization Group, Red Hat
http://people.redhat.com/~rjones
Read my programming and virtualization blog:
http://rwmj.wordpress.com
Fedora Windows cross-compiler. Compile Windows programs, test, and
build Windows installers. Over 100 libraries supported.
http://fedoraproject.org/wiki/MinGW