Linux mount remote directory to local and uninstall

Source: Internet
Author: User
Tags yum repolist

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/1865221

Linux mount remote directory to local and uninstall

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.