[Qt-interest] qt sockets vs native sockets and libssh2
Andreas Pakulat
apaku at gmx.de
Tue Jan 11 15:43:16 CET 2011
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.
Andreas
--
Your lucky number is 3552664958674928. Watch for it everywhere.
More information about the Qt-interest-old
mailing list