[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: need help about how to use libssh to achieve the port forwardding
[Thread Prev] | [Thread Next]
- Subject: Re: need help about how to use libssh to achieve the port forwardding
- From: Andreas Schneider <asn@xxxxxxxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Thu, 23 Aug 2012 09:58:22 +0200
- To: libssh@xxxxxxxxxx
On Tuesday 21 August 2012 15:35:49 you wrote: > Hi, Hi, > I have written a ssh server program based on libssh. It can achieve the > basic functions of the server. Now I want to join ssh port forwarding in > the program.But I do not know how to achieve the response of port > forwarding requests.Will libssh support response port forwarding the > request sent by the client?I would like to ask how to achieve and are there > some similar examples? there is no documentation for this code. See ssh_message_channel_request_open_originator() ssh_message_channel_request_open_originator_port() ssh_message_channel_request_open_destination() ssh_message_channel_request_open_destination_port() The to accecpt the request. The rest is up to you to connect the local socket to the ssh channel. -- andreas -- Andreas Schneider GPG-ID: F33E3FC6 www.cryptomilk.org asn@xxxxxxxxxxxxxx
need help about how to use libssh to achieve the port forwardding | 赵长松 <zhaochangsong_2010@xxxxxxx> |