Callback-based api behind ssh2 to open an SSH connection