Re: Random local port (General questions)
Hi Chad,
Here is example which will show you what channel is started after you make RemoteListen Connection:-------------------------
Dim i As IntegerFor i = 0 To SSH_1.Channels.Count - 1
Debug.Print SSH_1.Channels(i).RemotePort & = & SSH_1.Channels(i).Activated
Next i
-------------------------Hope I helped.
Regards,
Drazen
Hi Drazen-
If I open up a connection saying that the remote port is 0, because we can't know what port is available ahead of time, your debug output above always shows port 0.
However, the server does open up a random port correctly.
Looking at http://www.ietf.org/rfc/rfc4254.txt for the SSH_MSG_CHANNEL_OPEN_CONFIRMATION message, it does seem that when the server replies, that it includes both sides of the channel information. Of course, I've never debugged what the actual SSH conversation looks like, but I'm hoping that you can tell me that after a tunnel is opened, that the server does respond with the port information, and that this can be added to wodtunnel hopefully?
Thanks,
Chad
Complete thread:
- Random local port - Chad Amberg, 2004-10-07, 00:58
- Re: Random local port - wodSupport, 2004-10-07, 01:06
- Re: Random local port - Chad Amberg, 2004-10-07, 13:29
- Re: Random local port - Chad Amberg, 2006-08-26, 03:53
- Re: Random local port - Chad Amberg, 2006-08-26, 03:55
- Re: Random local port - woddrazen, 2006-08-26, 10:08
- Re: Random local port - Chad Amberg, 2006-08-26, 15:57
- Re: Random local port - Chad Amberg, 2006-08-26, 16:28
- Re: Random local port - wodSupport, 2006-08-27, 09:52
- Re: Random local port - Chad Amberg, 2006-08-27, 16:43
- Re: Random local port - wodSupport, 2006-08-27, 23:08
- Re: Random local port - wodSupport, 2006-08-27, 23:32
- Re: Random local port - Chad Amberg, 2006-08-28, 00:30
- Re: Random local port - wodSupport, 2006-08-28, 00:33
- Re: Random local port - Chad Amberg, 2006-08-28, 01:28
- Re: Random local port - wodSupport, 2006-08-28, 01:31
- Re: Random local port - Chad Amberg, 2006-09-02, 22:11
- Re: Random local port - wodSupport, 2006-08-28, 01:31
- Re: Random local port - Chad Amberg, 2006-08-28, 01:28
- Re: Random local port - wodSupport, 2006-08-28, 00:33
- Re: Random local port - Chad Amberg, 2006-08-28, 00:30
- Re: Random local port - wodSupport, 2006-08-27, 23:32
- Re: Random local port - wodSupport, 2006-08-27, 23:08
- Re: Random local port - Chad Amberg, 2006-08-27, 16:43
- Re: Random local port - wodSupport, 2006-08-27, 09:52
- Re: Random local port - Chad Amberg, 2006-08-26, 16:28
- Re: Random local port - Chad Amberg, 2006-08-26, 15:57
- Re: Random local port - woddrazen, 2006-08-26, 10:08
- Re: Random local port - Chad Amberg, 2006-08-26, 03:55
- Re: Random local port - Chad Amberg, 2006-08-26, 03:53
- Re: Random local port - Chad Amberg, 2004-10-07, 13:29
- Re: Random local port - wodSupport, 2004-10-07, 01:06