0
I want to download file via curl with sftp, like this
curl --insecure "sftp://1.1.1.1:22" --user 'root:123123'
and the sftp server make a security config(/etc/ssh/sshd_config, MACs hmac-sha2-512,hmac-sha2-256), so curl can't make connection with server, there is error logs in message.log
fatal: no matching mac found: client hmac-sha1,hmac-sha1-96,hmac-md5,hmac-md5-96,hmac-ripemd160,hmac-ripemd160@openssh.com server hmac-sha2-512,hmac-sha2-256 [preauth]
how can I config the mac with curl?
curl use the libssh2 to execute sftp operation, and old libssh2 don't support new HMAC algorithm, and I compile curl with the newest libssh, it works – cloudy – 2019-11-01T10:30:37.583