Can't we abstract this out a bit?  What if I want to use some other ssh libraries later or my platform supports (libfoossh but not libssh2?)  Even duplicating the signature might be appropriate here.