1. 程式人生 > >Centos sshfs的安裝和對映遠端伺服器目錄。

Centos sshfs的安裝和對映遠端伺服器目錄。

centos 6.5 安裝

[root]# yum install -y epel-release

[root]# yum -y install fuse-sshfs
Loaded plugins: fastestmirror
Loading mirror speeds from cached hostfile
Resolving Dependencies
--> Running transaction check
---> Package fuse-sshfs.x86_64 0:2.5-1.el7 will be installed
--> Processing Dependency: fuse >= 2.2 for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.2)(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.4)(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.5)(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.6)(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2(FUSE_2.7)(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Processing Dependency: libfuse.so.2()(64bit) for package: fuse-sshfs-2.5-1.el7.x86_64
--> Running transaction check
---> Package fuse.x86_64 0:2.9.2-10.el7 will be installed
---> Package fuse-libs.x86_64 0:2.9.2-10.el7 will be installed
--> Finished Dependency Resolution


Dependencies Resolved


=======================================================================================
 Package               Arch              Version                 Repository       Size
=======================================================================================
Installing:
 fuse-sshfs            x86_64            2.5-1.el7               epel             58 k
Installing for dependencies:
 fuse                  x86_64            2.9.2-10.el7            base             86 k
 fuse-libs             x86_64            2.9.2-10.el7            base             93 k


Transaction Summary
=======================================================================================
Install  1 Package (+2 Dependent packages)


Total download size: 237 k
Installed size: 640 k
Downloading packages:
(1/3): fuse-2.9.2-10.el7.x86_64.rpm                             |  86 kB  00:00:00     
(2/3): fuse-libs-2.9.2-10.el7.x86_64.rpm                        |  93 kB  00:00:00     
(3/3): fuse-sshfs-2.5-1.el7.x86_64.rpm                          |  58 kB  00:00:00     
---------------------------------------------------------------------------------------
Total                                                     1.1 MB/s | 237 kB  00:00     
Running transaction check
Running transaction test
Transaction test succeeded
Running transaction
  Installing : fuse-2.9.2-10.el7.x86_64                                            1/3 
  Installing : fuse-libs-2.9.2-10.el7.x86_64                                       2/3 
  Installing : fuse-sshfs-2.5-1.el7.x86_64                                         3/3 
  Verifying  : fuse-libs-2.9.2-10.el7.x86_64                                       1/3 
  Verifying  : fuse-2.9.2-10.el7.x86_64                                            2/3 
  Verifying  : fuse-sshfs-2.5-1.el7.x86_64                                         3/3 


Installed:
  fuse-sshfs.x86_64 0:2.5-1.el7                                                        


Dependency Installed:
  fuse.x86_64 0:2.9.2-10.el7              fuse-libs.x86_64 0:2.9.2-10.el7             


Complete!

sshfs -o rw [email protected]:/usr/local/yuanChengMuLu/ /usr/local/benDiMulu

-o rw: 讀寫方式掛載。如果不指定引數,預設讀寫方式掛載。

然後就可以在本地修改遠端沒記錄了。

done