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)