Why is sftp not supported in macOS Mojave curl?
In macOS Mojave, curl doesn't support sftp:
curl 7.54.0 (x86_64-apple-darwin18.0) libcurl/7.54.0 LibreSSL/2.6.5 zlib/1.2.11 nghttp2/1.24.1
Protocols: dict file ftp ftps gopher http https imap imaps ldap ldaps pop3 pop3s rtsp smb smbs smtp smtps telnet tftp
Features: AsynchDNS IPv6 Largefile GSS-API Kerberos SPNEGO NTLM NTLM_WB SSL libz HTTP2 UnixSockets HTTPS-proxy
I've searched and it appears that you have to reinstall curl with libssh2 but the following didn't work:
brew install curl --with-libssh2
from this link: https://try2explore.com/questions/11680460
The error message was:
Error: invalid option: --with-libssh2
I also have a Mac running Catalina and curl (7.64.1) does not support sftp.
- Is there an easy way to add sftp support to curl?
- Will the upcoming macOS add sftp support back?
Thanks
MacBook Pro 13″, macOS 10.14