Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

How to build your own FTP and SFTP servers

2025-01-25 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >

Share

Shulou(Shulou.com)06/02 Report--

This article focuses on "how to build your own FTP and SFTP servers". Interested friends may wish to have a look. The method introduced in this paper is simple, fast and practical. Let's let the editor take you to learn how to build your own FTP and SFTP servers.

Operating environment and software:

FTP server environment: WIN7 Professional Edition installed on a virtual machine, either 32-bit or 64-bit. Here is 64-bit.

Virtual machine network settings: be sure to set it to bridging mode, otherwise the IP address and communication with the physical machine may be abnormal.

* * FTP client software: * * Open source and free FileZilla-3.56.0 32-bit and 64-bit are available. Download address: Baidu.

It is recommended to download the green version directly, download and decompress it and use it.

* * FTP server software: * * Core FTP Server 32-bit or 64-bit, in line with your own operating system

Search engine search keyword "Core FTP"

Test method:

Both the FTP client and the FTP server are carried out within the virtual machine.

If there is a virtual machine connection, but the physical machine cannot be connected, there are two possibilities:

1. The virtual machine uses NAT network mode, which can be modified to bridge.

2. The firewall on the virtual machine side is blocked, and the outbound and inbound exception rules for ports 21 and 22 need to be established.

To install Core FTP Server, use the default. Right-click after installation-run as administrator

Core FTP Server supports:

1. Set up a separate FTP server

2. Set up a separate SFTP server

3. Set up FTP and SFTP servers at the same time

Here is the configuration method:

Then create a new solution:

The basic information is set up as follows:

The IP address is set to the IP address where the service software is installed. In this case, it is installed on a virtual machine with an IP of 192.168.3.104

Supported service type settings:

1. If you only want to create FTP, not SFTP, then leave the following four options unchecked.

2. If you only want to create SFTP, but not FTP, you can check DisableFTP.

3. If you want to build FTP and SFTP at the same time, check only SSH/SFTP

After the basic setup is complete, there is a key setting that, if not set, will result in a situation where SFTP is available and FTP is not available:

Or the settings page just now:

You need to set a password here, and don't worry about anything else.

After setting the password, the place looks like this:,

All the settings are as follows

If you only use SFTP, this is not done, but if you want to enable FTP, you also need to change the detailed settings project of FTP. The default option is to set up a FTP server that cannot be connected.

The details of the FTP settings are as follows: I used the following configuration:

Note the following coding settings, and it is recommended to set the bit UTF-8, otherwise, the FTP directory contains Chinese directories, which will lead to garbled problems when FTP acquires the directory.

Then click OK in the upper right corner, and after the server is set up, you will start to add users:

Several required items in the user settings:

Account number, password, directory after logging in to the server

After all the settings are saved, go to the following interface and click start to start the server.

After a successful startup, the following message box is displayed, prompting the following message:

Here FTP and SFTP are established at the same time

Next, use the FTP client to test:

FTP, the connection settings are as follows:

The connection settings for SFTP are as follows

FTP connected successfully:

In this way, a server that supports both FTP and SFTP is successfully established, and the virtual machine is bridged with the physical machine, so as long as other computers connected to the local area network can directly access the FTP of the virtual machine.

The message notification on the server side is as follows:

If the setting is incorrect, you can modify the configuration data at any time. After the modification is completed, stop can be restarted.

At this point, I believe you have a deeper understanding of "how to build your own FTP and SFTP server". You might as well do it in practice. Here is the website, more related content can enter the relevant channels to inquire, follow us, continue to learn!

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 252

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Development

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report