+++ Shahed Moolji [09/03/04 12:07 -0000]:
Hi,
I need to write an application that enables ssh tunneling for various ports. (Using openssl or any other library)
The steps involved are :-
- Open a ssh session (conection ?)
- Authenticate etc etc
- wait for a user to enter a port number.
- Enable port forwarding on the specified local / remort port
Now I want to do steps 3&4 on the same session, rather than open new ssh connections everytime. Is this possible ?
I tried searching the net, but nowhere did I find any thing that tells me that I can do port forwarding after establishing an ssh connection.
Any ideas if this is possible ? I have been looking at various library docs till now, and they dont explain if its possible to do this.
I am still trying to find some good docs on ssh that explain the protocol in a simple manner.
Thanks Shahed
Check out my ssh server www.sf.net/projects/gsshd channels.c should have the code u looking for