Mount a remote file system using sshfs and fuse - How to install sshfs
2012-05-15 15:40
621 查看
You can access a remote file system securely using sshfs and fuse which is a command to mount a remote filesystem encrypted through ssh.
This way you will be able to access remote files as if they were on you machine, just remember that if the connection between the computers is slow, the access will also be pretty slow.
Package needed
Installation
Get the packages
For Debian:
apt-get install fuse-utils sshfs
For Ubuntu:
For Fedora and Centos:
For Mandriva: urpmi:
Next step is to mount the fuse module
modprobe fuseNext create the mount point
mkdir /mnt/remote-fs
chown [your-user]:[your-group] /mnt/remote-fs/
Add yourself to the fuse group
Untill here all the command should be issued as root, now switch to your users and mount the remote filesystem.
sshfs remote-user@remote.server:/remote/directory /mnt/remote-fs/It will now ask you accept the key if this is the first time you connect to that PC using ssh, and then the password, or only the password if this is not the first time you use ssh to connect to the remote server, that should be
4000
all.
This way you will be able to access remote files as if they were on you machine, just remember that if the connection between the computers is slow, the access will also be pretty slow.
Package needed
sshfs fuse-utils
Installation
Get the packages
For Debian:
apt-get install fuse-utils sshfs
For Ubuntu:
sudo apt-get install fuse-utils sshfs
For Fedora and Centos:
yum install fuse-utils sshfs
For Mandriva: urpmi:
urpmi fuse-utils sshfs
Next step is to mount the fuse module
modprobe fuseNext create the mount point
mkdir /mnt/remote-fs
chown [your-user]:[your-group] /mnt/remote-fs/
Add yourself to the fuse group
adduser [your-user] fuse
Untill here all the command should be issued as root, now switch to your users and mount the remote filesystem.
sshfs remote-user@remote.server:/remote/directory /mnt/remote-fs/It will now ask you accept the key if this is the first time you connect to that PC using ssh, and then the password, or only the password if this is not the first time you use ssh to connect to the remote server, that should be
4000
all.
相关文章推荐
- Redhat Enterprise Linux securely mount remote Linux / UNIX directory or file system using SSHFS
- How to mount partition with ntfs file system and read write access
- How to mount partition with ntfs file system and read write access
- How to Mount and Unmount Filesystem / Partition in Linux (Mount/Umount Command Examples)
- How to mount a remote directory in Linux using sshfs
- How to add, modify, or delete registry subkeys and values by using a registration entries (.reg) file
- How To Install Or Upgrade LAMP: Linux, Apache, MySQL and PHP Stack Using Yum
- Q: How to generate exe install and uninstall file for an eclipse product?
- How to install LAMP (Apache, PHP and MySQL in Linux) using Yum
- How to Mount NTFS File System in CentOS 7 / RHEL 7
- [原创]HOW TO USE VERITAS VOLUME MANAGER AND VERITAS FILE SYSTEM
- How to copy a datafile from ASM to a file system not using RMAN (Doc ID 428893.1)
- BI Java 补丁错误处理 :Cannot login to the SAP J2EE Engine using user and password as provided in the Filesystem Secure Store. Enter va
- How to copy a datafile from ASM to a file system not using RMAN
- How to Install and Configure Bind 9 (DNS Server) on Ubuntu / Debian System
- How to Copy Archivelog Files From ASM to Filesystem and vice versa
- File System Redirector and Sysnative - how to call 64 bit program from 32 bit application
- How to dd a remote disk using SSH on local machine and save to a local disk
- How to Take Ownership of a File/Folder Using Command-Line in Windows 7 or newer version System
- How to Mount a Remote Folder using SSH on Ubuntu(Ubuntu 使用ssh挂载远程目录)