CentOS uses SSHFS to quickly build file sharing services

Source: Internet
Author: User
Tags ssh server

CentOS uses SSHFS to quickly build file sharing services to see a lot of tutorials are not complete enough to write their own according to the actual operation to find the pit to share a bit for everyone

The shared file server must have the SSH server open

Example: Ip192.168.7.50yum-y install epel-release # installation Epel source yum-y installed FUSE-SSHFS # install SSHFS sshfs-o allow_other,nonempty [Email protected]:/opt//opt/http Specify key file Sshfs-o allow_other,nonempty, Identityfile=~/.ssh/id_rsa_storm1 [email protected]:/opt//opt/http boot up to add mappings vim/etc/fstabsshfs#[email protected]:/opt//opt/http Fuse Defaults,auto,allow_ Other,nonempty,identityfile=~/.ssh/id_rsa_storm1 0 0 You can also modify/etc/ssh/ssh_config specify SSH to use the private key file to add Sed-i "/# Port 22/i\identi Tyfile ~\/.ssh\/id_rsa_storm1 "/etc/ssh/ssh_config ssh key generation Ssh-keygen input: id_rsa_storm1copy public key to remote server ssh-copy-id-i [ Email protected] Note: If you want to use a Web service to access a common directory, be sure to add the Allow_other parameter


This article is from the "Growth record" blog, so be sure to keep this source http://juestnow.blog.51cto.com/1515305/1878984

CentOS uses SSHFS to quickly build file sharing services

Related Article

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.