Huawei Hcie Theory and practical Notes "5-FTP_SFTP file Management"

Source: Internet
Author: User
Tags ftp connection ftp client file transfer protocol ftp protocol how to use ftp

Noun Explanation:

"FTP" FTP is the file Transfer Protocol (Files Transfer Protocol), first of all, it is a protocol, the two devices to provide a file transfer between the different operating systems will have different implementation methods, but as long as the standard of this protocol, you can transfer files on the Internet. At the same time it is also the name of the application, the end of the FTP service is called FTP Server, the other end of the network file upload or download is called the FTP Client.

"SFTP" SFTP is the secure file Transfer Protocol (Secure Files Transfer Protocol), strictly speaking, the SFTP and FTP in addition to the name of the comparison does not really matter. SFTP is part of SSH, which provides FTP-like functionality on the basis of SSH, and their instructions are almost identical, although the implementation of SFTP does not refer to the FTP protocol. SFTP does not have a separate server, it is a subprocess of ssh, so you only need to start the SSH service to use SFTP.


The meaning of an FTP and SFTP

The purpose of FTP is to facilitate the sharing of documents, most of the application scenarios for file access is even anonymous, there is no confidentiality, it can be said that FTP more emphasis on efficiency. In contrast, SFTP is more emphasis on security, mainly embodied in its entire process is under the protection of SSH, so the relative speed of sftp is more slow than FTP, in addition to the SFTP mandatory SSH authentication, so the convenience is not comparable to FTP. Users should make the choice according to their own needs.


Two how to use FTP to manage the files of the device

1 Creating an administrative user with level 3

File operations are management-level operations, so you must be a user of Level 3 to transfer FTP or SFTP.

[Huawei-aaa]local-user admin Privilege Level 3 Password cipher admin//username and password are admin

2 Specifies that its service type is FTP

[Huawei-aaa]local-user Admin Service-type FTP

3 Specifying the FTP directory for the Admin user

[Huawei-aaa]local-useradmin ftp-directory Flash://designated as the root of Flash] [huawei-aaa]local-useradmin ftp-directory Flash:/AR The AR directory root directory specified as Flash)

4 turning on the device's FTP service

[Huawei]ftpserver enable//let the device serve as FTP server

The above 4 steps to open the device's FTP service, the user can use the "ftp+ device IP" command on the CMD to the device to initiate an FTP connection, and use get to get the device files, put upload files.


Three how to use SFTP to manage your device's files

1 Creating an administrative user with level 3

2 Specifies that its service type is SSH

[Huawei-aaa]local-user admin service-type SSH

3 You do not need to specify the SFTP directory of the Admin user

This is one of the different places with FTP

4 Create a key for SSH

[Huawei]rsa Local-key-pair Create

5 Set User admin SSH authentication method for user name plus password combination authentication

[huawei]ssh user admin Authenticaltion-type Password

6 Turn on the device's SSH service

[Huawei]stelnet Server Enable

7 opening the device's SFTP service

[HUAWEI]SFTP Server Enable

8 Configure the virtual terminal to AAA mode and allow SSH protocol

[Huawei]user-intvty 0 4//Enter virtual terminal view [Huawei-ui-vty0-4]authentication-mode AAA//Authentication mode for AAA [HUAWEI-UI-VTY0-4]PROTOC OL inbound SSH//Allow SSH protocol


Huawei Hcie Theory and practical Notes "5-FTP_SFTP file Management"

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.