File Sharing Solution for Linux and Windows -- setting up an FTP server

Source: Internet
Author: User
Tags ftp protocol

File Sharing in Windows and Linux has always been a very tangled problem. Especially when using the virtual machine's shoes, you often need to copy the items in the virtual machine but cannot find a good method.

In fact, building an FTP server is undoubtedly a good choice thanks to the powerful server functions of Linux.

It is really easy to build a server in Linux. The specific steps are as follows, but we encountered a small problem during the experiment. Of course, it can be easily solved with the help of Goode.

Build Environment Virtual Machine centos6.2 + 2.8.32-220. e16.i686 kernel + Windows 7 System

1. After the network is configured, the host Windows and Linux can communicate with each other.

2. download the software vsftpd. Of course, you can also use other software, such as the safer SFTP.

3. Vim/etc/vsftpd. conf

Modify userlist_deny because when we open the vim/etc/vsftpd/userlist file, we say that when userlist_deny = No, we only use the name in this file to log on,
When userlist = Yes, the user in this file is forbidden, and the root user is in this file, so if you want to log on to the root user, add userlist_deny = No to/etc/vsftpd. in the conf file.
4. Then, set setsebool-P ftpd_disable_trans on or setsebool-P ftp_home_dir on to open the file directory.
I suffered a small loss in this place, but I can find the answer on the Internet.
5. Start the FTP server at/etc/init. d/vsftpd start.
6. Do not forget to turn off the Firewall Service iptables stop
Alternatively, you can use the SFTP protocol instead of the FTP protocol when using filezilia.
I tried filezilia in Windows to normally read the file directory, download the required files, and achieve basic file sharing.
Summary: The Linux server features a lot of functionality and is easy to build. If we can make good use of these features, we will be able to learn and work very efficiently.

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.