In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-04-05 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Network Security >
Share
Shulou(Shulou.com)06/01 Report--
The noun explains:
[FTP] FTP is File Transfer Protocol (File transfer Protocol). First of all, it is a protocol that specifies how to transfer files between two devices. There are different implementation methods in different operating systems, but as long as you follow the standards of this protocol, you can transfer files to each other on the Internet. At the same time, it is also the name of the application. The end that provides the FTP service is called FTP Server, and the end of the network that uploads or downloads files is called FTP Client.
[SFTP] SFTP is Secure File Transfer Protocol (secure File transfer Protocol). Strictly speaking, SFTP has nothing to do with FTP except that their names are similar. SFTP is a part of SSH, which provides similar functions to FTP on the basis of SSH, and their instructions are basically the same, but the implementation of SFTP does not refer to the FTP protocol. SFTP does not have a separate server, it is a child process of SSH, so you only need to start the SSH service to use SFTP.
The meaning of FTP and SFTP
The purpose of FTP is to facilitate file sharing. In most application scenarios, access to files is even anonymous, and there is no question of confidentiality at all. It can be said that FTP pays more attention to efficiency. Relatively speaking, SFTP pays more attention to security, mainly reflected in that its whole process is protected by ssh, so the transmission speed of SFTP is much slower than that of FTP. In addition, SFTP forces SSH authentication, so convenience is not as convenient as FTP. Users should make choices according to their own needs.
How to use FTP to manage the files of the device
1 create an administrative user with level 3
File operations are administrative operations, so it must be a level 3 user who can transfer FTP or SFTP.
[Huawei-aaa] local-user admin privilege level 3 password cipher admin / / username and password are admin
2 specify its service type as ftp
[Huawei-aaa] local-user admin service-type ftp
3 specify the ftp directory of the admin user
[Huawei-aaa] local-useradmin ftp-directory flash:/ / designated as the root of flash) [Huawei-aaa] local-useradmin ftp-directory flash:/AR / / designated as the root of the AR directory of flash)
4 enable the ftp service of the device
[Huawei] ftpserver enable// lets the device be the server of FTP
The FTP service of the device is enabled in the above four steps. Users can use the "ftp+ device IP" command on cmd to initiate a ftp connection to the device, and use get to obtain the device's files, and put to upload files.
3 how to use SFTP to manage the files of the device
1 create an administrative user with level 3
2 specify its service type as ssh
[Huawei-aaa] local-user admin service-type ssh
3 there is no need to specify the sftp directory of the admin user
This is one of the things that is different from ftp
4 create a key for ssh
[Huawei] rsa local-key-pair create
5 set the ssh authentication method of user admin to user name and password combination authentication
[Huawei] ssh user admin authenticaltion-type password
6 enable the ssh service of the device
[Huawei] stelnet server enable
7 enable the sftp service of the device
[Huawei] sftp server enable
8 configure the virtual terminal to aaa mode and allow ssh protocol
[Huawei] user-intvty 0 4 / / enter the virtual terminal view [Huawei-ui-vty0-4] authentication-mode aaa / / Authentication mode is aaa [Huawei-ui-vty0-4] protocol inbound ssh / / allow ssh protocol
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: 0
*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.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.