I have some sample SSH2 code and I was able to create the tunneling and I can forward the ports from localhost to a remote server.
But i need to know about reverse port forwarding. Is it possible in SSH2?
Port Forwarding:
listener = libssh2_channel_forward_listen_ex([server session], remote_listenhost, remote_wantport, remote_listenport, 1);