Here we need to use this tool to SSHFS, installing this tool requires Epel source
1. Confirm the version of your CentOS
First confirm your CentOS version with the following command
#cat/etc/redhat-release
CentOS Release 6.5 (Final)
2. Download the Epel RPM installation package
Now download the Epel version of the CentOS version from the address above
#wget http://download.fedoraproject.org/pub/epel/6/x86_64/epel-release-6-8.noarch.rpm
3. Installing Epel
Install the Epel package with the following command
#rpm-IVH epel-release-6-8.noarch.rpm
5. Check the Epel source
After installing the Epel source, use the Yum command to check whether the source list is added
# yum Repolist
Installing SSHFS
Yum-y Install SSHFS
To mount the remote SSH file system:
SSHFS [Email protected]:/home//mnt/
SSHFS User name @ remote host IP: Remote host path local mount point
Sshfs-o transform_symlinks-o follow_symlinks [email protected]:/HOME/USERNAME/SSHFS
-O Transform_symlinks represents the conversion of absolute link symbols to relative link symbols
-O follow_symlinks Follow the link symbols on the server
Unloading
Fusermount-u/mnt
This article is from the "Knife" blog, please be sure to keep this source http://quyong.blog.51cto.com/2434342/1865222
Linux mount remote directory to local and uninstall