Generate libssh2 library as esp-idf component lib to be compatible and use it in esp-idf projects.
Execute "get_libssh2_to_component" script to generate an specific libssh2 component lib for esp-idf:
chmod +x get_libssh2_to_component
./get_libssh2_to_component
You can setup wich libssh2 version should be used modifying the next line from "get_libssh2_to_component":
- LIBSSH2_VERSION="libssh2-1.8.0"