Unsolved How to implement application for secured ftp in qt
-
I have trying to create qt application for download and upload file from secured FTP server in qt. I have no idea how to achieve this. Please guide me how to do?
-
Hi
You could use
https://github.com/lvklabs/QSsh -
QNetworkAccessManager
should handle the protocol seamlessly, it's just aget()
to download andpost()
to uploadEDIT: I was wrong
-
Hi
Thank you for your response. I will try QSsh with my application. -
Hi,
I tried QSsh in my application, once I build my application with QSsh than I get error like error: LNK1104: cannot open file 'QSsh-master/lib.obj' . -
@Rajkumar_91
Then I can only imagine that file does not exist there, for whatever reason.Personally I'd try the Qt non-third-party-application approach suggested by @VRonin , which just means you write code within the normal Qt framework. Unless you need an external library for your purposes, "KISS"!
-
Oh, so QNetworkAccessManager does handle SFTP protocol natively ?
Way better then :)Update: It supports FTP/s but SFTP is different.
-
Thanks @mrjj for making me see my mistake.
You can use libcurl to do it. It's the reference network library for me.
- libcurl page: https://curl.haxx.se/libcurl/
- Exmaple in sftp: https://curl.haxx.se/libcurl/c/sftpget.html
- C++ wrapper over the main library for C-phobics like me: https://github.com/jpbarrette/curlpp