SFTP remote connection server upload download file-vs2010 Project instance

Source: Internet
Author: User

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.