Sunday, September 25, 2011

Mounting Remote Directories With SSHFS On Debian Squeeze

#

 

3 Using SSHFS As rootserver1:

Now I want to mount the remote directory /home/backup (on server2, owned by server2's root user) to the local /backup directory as the local root user.

First add root to the fuse group:

adduser root fuse

Create the local /backup directory and make sure it's owned by root (it should be anyway as you are running these commands as root):

mkdir /backup
chown root /backup

Then mount the remote /home/backup directory to /backup:

sshfs -o idmap

View the Original article