Home PC Games Linux Windows Database Network Programming Server Mobile  
  Home \ Linux \ How SSHfs mount a remote file system on Linux     - Quickly build and install Linux KVM system (Linux)

- X security settings in Ubuntu (Linux)

- Server Security Analysis attack on Linux (Linux)

- New experience Budgie (Budgerigar) desktop environment (Linux)

- Oracle TDE transparent data encryption (Database)

- Inherent limitations of Linux systems network security (Linux)

- Automatic batch resolve dependencies problem locally installed rpm package (Linux)

- Generated characters using Java Videos (Programming)

- Circular list of Java programming (Programming)

- Installed in the desktop version of Ubuntu Unity Tweak Tool (Linux)

- For the FreeBSD install Adobe Flash plug-in (Linux)

- Create a DLL using MinGW and Attention (Programming)

- PHP Performance Analysis and Experiment: Performance Micro Analysis (Programming)

- Linux variable learning experience (Linux)

- IntelliJ IDEA common list of shortcuts (Linux)

- Linux / proc directory Comments (Linux)

- Permissions and attributes of files and directories under Linux (Linux)

- A new method for Linux hidden files (Linux)

- How to install and use the Snort in Ubuntu 15.04 (Linux)

- 11.2.04 Oracle RAC directory crfclust.bdb file is too large, Bug 20186278 (Database)

  How SSHfs mount a remote file system on Linux
  Add Date : 2018-11-21      
  Have you ever thought of using the secure shell to mount a remote file system to a local do? If so, SSHfs maybe what you need. It does this by using SSH and Fuse (LCTT Annotation: Filesystem in Userspace, user mode file system, Linux is used to mount some cyberspace, such as SSH, to the local file system module) allows you to mount remote computer (or server ) locally.

Note: This article assumes that you know how to work and configure SSH SSH on your system.


Before using SSHfs mount, require some setup - Install SSHfs and fuse packages on your system. You also need to create a fuse group, add users to groups, and create a directory on the remote file system will reside.

To install the two packages on Ubuntu Linux, just type the following command in a terminal window:

sudoapt-get install sshfs fuse

ubuntu install sshfs-fuse

If you are not using Ubuntu, then search package name in your distribution package manager. The best search and fuse or SSHfs relevant keywords, because depending on the system you are running, the package name may be slightly different.

After installing the package on your system, created in respect of the fuse group. When you install the fuse, it should create a group on your system. If not, enter the following command in a terminal window to create a group in your Linux system:

sudogroupadd fuse
After you add a group, add your user to the group.

sudo gpasswd -a "$ USER" fuse

sshfs add users to groups fuse

Do not worry about the above command $ USER. shell will automatically use your own user name replacement. After processing the group and related work, it is time to create a directory to mount the remote file.

mkdir ~ / remote_folder
After your system creates a local directory, you can mount the remote file system SSHfs.

Mounted remote file systems

To mount the remote file system on your machine, you need to enter a long command in a terminal window.

sshfs -o idmap = user username@ip.address: / remote / file / system / ~ / remote

sshfs mount the file system to a local directory 1

Note: You can mount the file system via SSH SSHfs key file. Only the top hits with sshfs -o IdentityFile = ~ / .ssh / keyfile, replace sshfs -o idmap = user part.

After you enter this command, you will be prompted to enter the remote user's password. If the login is successful, your remote file system will be mounted to the ~ / remote_folder directory you created earlier.

sshfs mount the file system to a local directory 2

Use over your remote file system, you want to uninstall it? Easy? Only need to enter the following command in a terminal:

sudoumount ~ / remote_folder
This simple command will disconnect the remote connection simultaneously emptied remote_folder directory.

to sum up

On Linux there are many tools can be used to access remote files and mount it locally. But as I said before, if any, only a few tools to take full advantage of the power of SSH. I hope that with the help of this guide, it is also able to recognize the SSHfs what a powerful tool.

SSHfs how you feel like it? In the comment box below to tell us about it!
- Cache implementation APP interacts with the server-side interface control Session (Server)
- Get the Linux device PCI ID method (Linux)
- Install Jetty on CentOS / RHEL 6.X (Server)
- RHEL 6.6 install GNOME desktop environment (Linux)
- Hibernate4 The Hello World (basic environmental structures) (Programming)
- You need to know 12 Git High Command (Linux)
- Linux Apache server configure to protect system security (Linux)
- JavaScript cross-browser event object library (Programming)
- Connect to the Oracle Database Help class (Database)
- SELinux security permissions HTTP + PHP service changes (Server)
- Linux systems use logwatch log file monitoring (Linux)
- RedHat Linux 7 build yum source server (Server)
- Linux systems use IP masquerading anti-hacker (Linux)
- OpenGL Programming Guide (8th edition of the original book) - compute shader (Programming)
- 10 Linux in the passwd command examples (Linux)
- Ubuntu users to install Xtreme Download Manager (Linux)
- HttpClient Tutorial (Programming)
- Ubuntu 12.04 installation instructions under GAMIT10.40 (Linux)
- Linux server startup and logon security settings (Linux)
- Shell Scripting early experience (Programming)
  CopyRight 2002-2022 newfreesoft.com, All Rights Reserved.