In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-18 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly introduces "how to quickly configure sftp services under Linux". In daily operation, I believe many people have doubts about how to configure sftp services quickly under Linux. The editor consulted all kinds of materials and sorted out simple and easy-to-use operation methods. I hope it will be helpful to answer the doubts about "how to configure sftp services quickly under Linux". Next, please follow the editor to study!
Sftp is the abbreviation of Secure FileTransferProtocol, secure file transfer protocol. It can provide a secure encryption method for transferring files. Sftp and ftp have almost the same syntax and function. SFTP is part of SSH and is a secure way to transfer files to a Blogger server.
1. Create sftp user group groupadd sftp2, create ftp user useradd-g sftp-s / sbin/nologin-M yanqipasswd yanqi3, create yanqi home directory and specify
Note: change the owner to the home directory and authorize the home directory owner to be root, with permissions of 755 or 750
Mkdir / opt/data-pusermod-d / opt/data yanqichown root:root / opt/datachmod 755 / opt/data4, create writable directory mkdir / opt/data/file-pchown yanqi:sftp / opt/data/file5, edit configuration file / etc/ssh/sshd_config comment out X11Forwarding yes, probably comment out Subsystem sftp / usr/libexec/openssh/sftp-server on line 101, Line 132 and add the following statement at the end of the file: Subsystem sftp internal-sftpMatch User yanqiChrootDirectory / opt/dataForceCommand internal-sftpAllowTcpForwarding noX11Forwarding nosystemctl restart sshd6, verify
Note: files can only be deleted to the / opt/data/file directory and can be uploaded and deleted.
At this point, the study on "how to quickly configure sftp services under Linux" is over. I hope to be able to solve your doubts. The collocation of theory and practice can better help you learn, go and try it! If you want to continue to learn more related knowledge, please continue to follow the website, the editor will continue to work hard to bring you more practical articles!
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.