libssh安装
libssh官方下载链接
mkdir build
cd build
cmake -DCMAKE_INSTALL_PREFIX=/opt/libssh/ ..
make -j6
sudo make install
libssh2安装
libssh2官方下载链接
ubuntu系统安装
./configure --prefix=/opt/libssh2
make -j6
sudo make install
MacOS系统安装
首先安装openssl
openssl官方下载链接
./config --prefix=/opt/openssl
make -j6
sudo make install
安装libssh2
./configure --prefix=/opt/libssh2 --with-libssl-prefix=/opt/openssl
make -j6
sudo make install