FTP and SSH detailed under Linux

Source: Internet
Author: User

Learn a few days under the Linux FTP and SSH construction and use, so record. The primary purpose of learning FTP and SSH is to connect to a remote host and file transfer. No more nonsense, just talk!

FTP server 1. Environment construction

My system is archlinux, I am based on vsftpd to build, first need to install it: pacman-s vsftpd

The configuration file is then edited to open the /etc/vsftpd.conf(also possible in /etc/vsftdp/.vsftpd.conf)

Here is the contents of my configuration file:

In the above configuration file, we allow anonymous users to log in, and they have permission to delete and upload, but these operations are limited to 777 of the permissions of the directory. We configured the anonymous user to enter the directory by default /var/ftp/pub, we'd better set its permissions to 755, so that anonymous users this can access and download files in this directory, other operations are not possible. In addition, we want to create a directory with permissions of 777, and anonymous users can manipulate files in any of them. These actions are as follows (in this machine):

mkdir -p/var/ftp/pub

mkdir -p/var/ftp/upload

chmod 777 /var/ftp/upload

At this point, our environment has been built.

2. Using the example

Have a meal first

FTP and SSH detailed under Linux

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.