Нужна последняя версия, в репо нет.
В мануале написано сделать так:
cmake -DUNIT_TESTING=ON -DCMAKE_INSTALL_PREFIX=/usr -DCMAKE_BUILD_TYPE=Debug ..
make
CMake Error at cmake/Modules/MacroEnsureOutOfSourceBuild.cmake:13 (message):
libssh requires an out of source build. Please create a separate build
directory and run 'cmake /path/to/libssh [options]' there.
Call Stack (most recent call first):
CMakeLists.txt:40 (macro_ensure_out_of_source_build)
CMake Error at cmake/Modules/MacroEnsureOutOfSourceBuild.cmake:14 (message):
Remove the file CMakeCache.txt in /tmp/libssh-0.9.2 first.
Call Stack (most recent call first):
CMakeLists.txt:40 (macro_ensure_out_of_source_build)
-- Configuring incomplete, errors occurred!
Что за ‘separate build directory’ не понятно, /path/to/libssh не нашел где текущая версия libssh, удаление CMakeCache.txt вообще ничего не дало.