|
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 fuseCreate 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 /backupchown root /backup
Then mount the remote /home/backup directory to /backup:
sshfs -o idmapView the Original article