Articles cannot be uploaded although the plugin does not show any error messages. Also, there are no entries in both the php and curl error logs.
Our solution: We created a .ssh directory for the apache user (www-data), i.e /var/www/.ssh and added the known_hosts by hand.
Our question: The curl library contains a parameter CURLOPT_SSH_KNOWNHOSTS which expects a path to a known_hosts file. In the PHP curl extension, this parameter is missing, however, one can pass a MD5 hash to CURLOPT_SSH_HOST_PUBLIC_KEY_MD5 (which could be read from a different file). So, we are wondering if the verification is really necessary or could be turned off.
Articles cannot be uploaded although the plugin does not show any error messages. Also, there are no entries in both the php and curl error logs.
Our solution: We created a
.ssh
directory for the apache user (www-data
), i.e/var/www/.ssh
and added theknown_hosts
by hand.Our question: The curl library contains a parameter
CURLOPT_SSH_KNOWNHOSTS
which expects a path to aknown_hosts
file. In the PHP curl extension, this parameter is missing, however, one can pass a MD5 hash toCURLOPT_SSH_HOST_PUBLIC_KEY_MD5
(which could be read from a different file). So, we are wondering if the verification is really necessary or could be turned off.What we are using: