SSHFS Command Mount remote directory (Debian CentOS)

Source: Internet
Author: User

Tag: SSHFS Mount

The project has an online machine that needs to be migrated to another 1.   There are several different directories that need SCP to another 1 go up   find using SSHFS to mount the directory in a single time   after local replication in umount so easy and convenient, Also omit each time the SCP needs to knock the password. Basic Environment severa=192.168.1.122 (6.0.10) debian severb=192.168.1.120 (6.6) CENTOS1, installation SSHFS (sshfs -  FILESYSTEM CLIENT BASED ON SSH) APT-GET -Y INSTALL SSHFS2, Mount format sshfs [[ Email protected]]host:[dir] mountpoint [options]3, mount the/opt/111 directory on the Severb machine to/mnt under Severa Echo   "Redhat" |sshfs -o nonempty,allow_other,password_stdin [email protected]:/opt/111  /mnt4, parameter description-o password_stdin read password from stdin  (only for  pam_mount!) -o nonempty allow mounts over non-empty file/dir-o allow_other allow  ACCESS TO OTHER USERS5, viewing Mount df -thfilesystem    type     Size  Used Avail Use% Mounted on/dev/sda1      ext3     19g  2.1g   16g  12% /tmpfs         tmpfs    494m     0  494m    0% /lib/init/rwudev         tmpfs     490M  156K  490M   1% /devtmpfs         tmpfs    494m     0  494m    0% /dev/shm/dev/sda5     ext3     31g   179M   30G   1% /opt[email protected]:/opt/111         fuse.sshfs     26G  244M    25g   1% /mnt==========================centos=========================== CentOS Direct Yum installation (provided there is a Epel source) 1, query Yum list |grep sshfsfuse-sshfs.x86_64                           2.4-1.el6                       epel2, installation YUM -Y INSTALL FUSE-SSHFS


This article is from the "7928217" blog, please be sure to keep this source http://7938217.blog.51cto.com/7928217/1661793

SSHFS Command Mount remote directory (Debian CentOS)

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.