Using SFTP to copy local files to a distant server
Using SFTP to copy local files to a distant server
Hello,
Is it possible, directly with wxWidgets, to make a sftp connection in order to copy files from local to a distant server ?
Regards
Philippe
Is it possible, directly with wxWidgets, to make a sftp connection in order to copy files from local to a distant server ?
Regards
Philippe
Re: Using SFTP to copy local files to a distant server
No.
I would recommend libcurl to do that.
I would recommend libcurl to do that.
Use the source, Luke!
Re: Using SFTP to copy local files to a distant server
Thank you !
Would you have a simple example of a SFTP copy action ?
There are examples on the libcurl site, but not so easy for a newbye.
Best regards
Philippe
Would you have a simple example of a SFTP copy action ?
There are examples on the libcurl site, but not so easy for a newbye.
Best regards
Philippe
Re: Using SFTP to copy local files to a distant server
I found those 2 examples
ftpupload.txt
sftpget.txt
Now I need to install the lib (I use codeblock to build windows programs with static lib).
You would be the best place to ask for help for this installation ?
Thanks again
Philippe
ftpupload.txt
sftpget.txt
Now I need to install the lib (I use codeblock to build windows programs with static lib).
You would be the best place to ask for help for this installation ?
Thanks again
Philippe
-
- Filthy Rich wx Solver
- Posts: 235
- Joined: Fri Sep 14, 2012 8:26 am
- Location: Kontich, Belgium
- Contact:
Re: Using SFTP to copy local files to a distant server
I use the chilkat library for almost 3 years now and it has a lot of functionalities that nicely fill in the things that wxwidgets is missing. Not that wxwidgets needs to have these, for all, wxwidgets is all about the gui. Things like FTP/SFTP, IMAP, POP3, XML, Zip etc...
Re: Using SFTP to copy local files to a distant server
Thank you,
But it seems that this lib is not opensource. Is it ?
Regards
But it seems that this lib is not opensource. Is it ?
Regards
Re: Using SFTP to copy local files to a distant server
In general all you need to do is find a binary for your system ( https://curl.haxx.se/download.html ), unpack it, set the include and library paths and add the library itself. But as usual: As i don't use CB, i can't tell you exactly where and howNow I need to install the lib (I use codeblock to build windows programs with static lib).
Use the source, Luke!
Re: Using SFTP to copy local files to a distant server
BTW: For SFTP you need a package that has SSL and SSH included.
Use the source, Luke!
Re: Using SFTP to copy local files to a distant server
May be this one : Win32 7zip 7.50.1 binary SSL SSH Viktor Szakáts 1.56 MB
Thanks
Thanks
Re: Using SFTP to copy local files to a distant server
Hi, a bit late, but better late than never...
I have already implemented this in CodeLite IDE - which is an open source GPLv2.
You can see the sources here:
clSFTP class:
https://github.com/eranif/codelite/blob ... /cl_sftp.h
clSFTP uses clSSH for the session:
https://github.com/eranif/codelite/blob ... e/cl_ssh.h
I have written this based on libssh (NOT libssh2) and it is working for couple of years now on Windows/Linux and OSX
I have already implemented this in CodeLite IDE - which is an open source GPLv2.
You can see the sources here:
clSFTP class:
https://github.com/eranif/codelite/blob ... /cl_sftp.h
clSFTP uses clSSH for the session:
https://github.com/eranif/codelite/blob ... e/cl_ssh.h
I have written this based on libssh (NOT libssh2) and it is working for couple of years now on Windows/Linux and OSX
Re: Using SFTP to copy local files to a distant server
Thank you.
Can you bring an example of a short code that would open a connection and upload a file to the distant server ?
Can you bring an example of a short code that would open a connection and upload a file to the distant server ?