I'm starting a new project, a cross-platform C++ program that will need to connect to servers of the user's choice using SSH code built into the program. I'm trying to decide between libssh
and libssh2
. (Licensing is not an issue; libssh
's LGPL is fine.)
libssh2
seems, from this page, to be the way to go -- with one possible exception. It doesn't support SSH v1. I have no idea what percentage of servers out there might only support SSH v1 these days. Does anyone have experience in this area, or could point me to something that would answer that?
Alternatively, can anyone point out another SSH library with SCP capability that supports both SSH v1 and v2? Preferably one that is thread-safe and can also support non-blocking operations?