curl -s https://file-url/file | ssh username@remote-server "cat > /path/to/filename"
-s是静默模式,不输出任何信息
下载:https://curl.haxx.se/download.html
解压:tar -xzf curl-download-file-name
安装:
./configure --with-ssl --with-libssl-prefix=/usr/local/openssl
make
make test
make install
重启
验证:
curl -V
curl-config --version
curl -O url
curl -X POST -d @filename url