lvklabs / qssh Goto Github PK
View Code? Open in Web Editor NEWSSH and SFTP support for Qt. This project is based on Qt Creator's libQtcSsh.so
License: GNU Lesser General Public License v2.1
SSH and SFTP support for Qt. This project is based on Qt Creator's libQtcSsh.so
License: GNU Lesser General Public License v2.1
I have the current problem that my application is getting stuck if i do an download with the sftptablemodel test code. I also rewrote the "secure uploader" example to download a file (basically i think that i understood the mechanics of QSsh), but the phenomenon is the same. I try to download files with the size of about 50Mbs. The download works, but the UI is freezing (the CPU load is only at about 20%) and the download in the background is very slow. So i need aber 10-20 Minuts with an 25Mbit internet connection. In addition to that the QT IDE is crashing while i'm debugging the application
The Server which i'm connecting to is an linux based sftp Server from an webspace provider (IONOS). The download works properly with FileZilla
My Question:
I use the following branch:
https://github.com/mardy/QSsh
Hi,gentlemen:
I am using sftps of qssh on win10 to pull dir from linux.Firstly I must compile ssh.But I encountered an issure which is related with compiling botan which is used by qshh.I don't know which version of botan I need.So I tried serverl versions and find botan2.3 is fitable for the newest qssh.But the last problem is that after I have complied botan 2.3 with nmake and get the lib,I use it in qssh,it reports error such as "QSsh-master\src\libs\ssh\sshsendfacility.cpp:-1: error: undefined reference to `__imp__ZN5Botan14AutoSeeded_RNGC1Ey'".I donn't konw how to resolve it.In fact,I only cared about using qssh,but the botan makes me hard.My steps of compling botan is:
configure.py --cc=msvc --cpu=x64 --os=windows
nmake
nmake install
Looking forward to your reply!and thank you for that!
Hello,
What file format are supported?
I managed to go as far as this error:
Decoding of private key file failed: Format not understood.
There is no example on how to secure an SFTP upload with a key file and no key file format as been mentioned in the documentation either. Anyhow, my private key looks like this:
-----BEGIN RSA PRIVATE KEY-----
Proc-Type: 4,ENCRYPTED
DEK-Info: AES-128-CBC,...SNIPP
...SNIPP
-----END RSA PRIVATE KEY-----
Any insight would be greatly appreciated.
Thank you,
Would it be okay to point this at my repository? This repo is getting quite out of date.
My version is at https://github.com/sandsmark/QSsh
Hi, are you still interested in maintaining this library? If so, I might be able to help.
I'm looking for an SSH library for Qt and this appears to be a good candidate. However, it's not been updated to Qt 5 and I'm not sure it will compile out-of-the-box. However, what intrigues me is that it is based on source we know works (the Qt Creator SSH library).
I'd be willing to help extract/port the newest Qt Creator SSH library source to this library. What do you think? I've been an OSS maintainer and know how much work it is, so please don't feel badly about declining…
Either way, thank you for creating this library!
It seems that it does not work with SSH 5.8.
The problem is when it finds a serverId like "SSH-2.0-OpenSSH_5.8p1-hpn13v11"
See sshconnection.cpp --> void SshConnectionPrivate::handleServerId().
The RegExp seems to be wrong,
这样的方式定义信号与槽:
connect(m_connection,&QSsh::SshConnection::connected,this,&Widget::handleConnected);
为什么会报这个错误啊?
E:\Demo_QSsh\lib\libQSshd.a(d000420.o):-1: error: multiple definition of `QSsh::SshConnection::connected()'
I tested many cases, and I found only no-bigger-than-20GiB can be transferred once
Dear Friend:
How to solve this problem:
Fatal SSH error: SSH Protocol error: Server and client capabilities don't match. Client list was: aes128-cbc,3des-cbc.
Server list was [email protected],aes128-ctr,aes192-ctr,aes256-ctr,[email protected],[email protected].
Hi,
Would it be possible to use QSsh in Qt Android Apps?
Thanks
I can build Botan successfully on its own but when I build QSsh, it has a problem with including Botan headers.
Something is missing in the instructions.
After cloning QSsh, one has to clone Botan somewhere, but where?
And then what is the sequence of building and linking.
Hi, I'm using createRemoteShell when got a connect with another PC, and also I can run script which contains a set of executable files.
For now I wanne kill the script that mean kill sets of executable files. How can I do?
Looking forward to reply, Thanks a lot.
Hi there!
I get an error while linking against botan 2.6.0:
https://ci.appveyor.com/project/mardy/photokinesis#L14367
Any ideas how to fix it? It's rather weird, as it would seem to me that those three functions are actually exported by botan (you can see that earlier in the logs I'm calling dumpbin). Has Qssh been tested in Windows? If so, what version of botan is known to work?
Please add the last modification time of the file like the Qftp class
I'm having a hard time with SecureFileUploader example. It would be very handy to have an example of what SshConnectionParameters looks like. Especially m_remoteFilename, host and user name.
Thanks,
Why I used the "downloadDir" interface to download all the folders in the directory (empty folder, contents not downloaded).However, the "uploadDir" upload folder is normal (all files in the folder were successfully uploaded)
As reported in issue #14, the current version of QSsh does not build on Windows. I spent some time to figure out why, but I eventually gave up (I'm a Linux guy, after all!).
So, I decided to try an older version of QSsh, before the move to botan2, but that was also failing because of an error in make_pair
. It turned out, this has been fixed long ago in QtCreator, so I tried to make a new branch where I integrate all the changes that happened in QtCreator, into QSsh.
The result is this branch: https://github.com/mardy/QSsh/tree/botan-1
I would recommend using this one as your master branch.
I was thinking how to modify/customize the downloadDir method so that it will download files of a particular type (say .txt). In addition, it could be based on a pattern/regex in the filename.
Thanks.
i need to get remote directory size on downloaddir.
SftpChannel::downloadDir() and SftpChannel::uploadDir() fail when trying download/upload a directory with a lot of files (more than 2400) in Windows.
$ git clone https://github.com/lvklabs/QSsh.git
Cloning into 'QSsh'...
remote: Reusing existing pack: 259, done.
remote: Total 259 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (259/259), 694.24 KiB | 929.00 KiB/s, done.
Resolving deltas: 100% (105/105), done.
Checking connectivity... done
$ cd QSsh/
$ ls
examples LGPL_EXCEPTION.TXT LICENSE.LGPL qssh.pri qssh.pro README README.md src tests
$ mkdir build
$ cd build/
$ qmake ../qssh.pro
qmake: could not find a Qt installation of ''
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.