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