Hi,
I need to write an application that enables ssh tunneling for various ports. (Using openssl or any other library)
The steps involved are :- 1. Open a ssh session (conection ?) 2. Authenticate etc etc 3. wait for a user to enter a port number. 4. 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
+++ 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
Vikram Rangnekar wrote:
+++ 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.
Why cant you take port and authentication string when application start and then use ssh port forwarding/bind directly? Will this not work for you?
-krd.
Why cant you take port and authentication string when application start and then use ssh port forwarding/bind directly? Will this not work for you?
-krd.
i am sorry i dont understand your question. what do u mean by authentication string and what application ?