[Qt-interest] qt sockets vs native sockets and libssh2

Christian Gagneraud cgagneraud at techworks.ie
Tue Jan 11 17:59:01 CET 2011


On 01/11/2011 02:43 PM, Andreas Pakulat wrote:
> On 11.01.11 14:05:50, Christian Gagneraud wrote:
>> On 01/11/2011 12:51 PM, Dmitry Teslenko wrote:
>>> Hello!
>>> I'm trying to get ssh port forwarding with libssh2 and qt4 gui on win32
>>> platform.
>>> SSH library provides usable example with native sockets and I have
>>> problem adapt that code for qt sockets.
>>> libssh2 works fine with native sockets work and stucks on data transfer
>>> with qt sockets. I guess there's some kind of restriction in libssh2 or
>>> in qt that I dont' aware of and I need your help.
>>
>> Why don't you don't simply fork a SSH process (using QProcess) that do
>> the port forwarding for you?
>
> Because then he cannot supply a password or passphrasse to ssh unless his
> application is always run from a terminal. And even then its very strange
> for a GUI app to ask for password/passphrase on the terminal it was started
> from. Hence libssh2 usage which has a hook to provide a custom way to ask
> the user for this information.

Good point! Next time, I'll think twice before sending! ;)

Chris


>
> Andreas
>


-- 
Christian Gagneraud,
Electronics and software engineer

TechWorks Marine Ltd
4a, Park Lane
Dun Laoghaire, Co Dublin
Ireland

Tel: + 353 1 2365990
Fax: + 353 1 2365992
Web: www.techworks.ie





More information about the Qt-interest-old mailing list