This project only test remote connection server, support upload, download files, more features development please see API Self-development.
Environment: Win7 System, vs2010vs2010 project example: CSDN download If there is no csdn points, Baidu network disk download (password: uxnt) file directory Description:
1.libssh2.sln is the VS2010 solution, opened with vs2010 (1);
Include is the header file that needs to be imported, and Lib is the Lib file (shown in 2) that needs to be used;
Figure 1
Figure 2
2. Solution: "Libssh2" (3)
This only needs to compile and run the demo project;
(1) Project LIBSSH2 is the source code to compile, (if necessary, can compile themselves, generate libssh2.lib, but I have compiled, put into the Lib folder)
(2) Demo is to use the generated libssh2.lib and other LIB files, a remote connection server, test upload and download the small project;
I have loaded the compiled libssh2.lib,libeay32.lib,ssleay32.lib,zlib.lib into the demo project, you just need to put the ip,port,usr,pwd in the main.cpp, download the file path, Save the file path and modify it for yourself (4);
Compile the demo project directly and start execution;
Ps:
Sftp_libssh2.h
Sftp_libssh2.cpp
Function: File transfer function of SFTP protocol.
(3) tests temporarily not used;
Figure 3
Figure 4
If you have any questions, please leave a message and see the reply.
SFTP remote connection server upload download file-vs2010 Project instance