Today I'm searching for a way to mount a remote directory on my local machine, such that it acts like a local machine. The sole reason is to run the remotely compiled code locally.
I've found a nice article on it and would like to blog it here.
Here we go:
- Install SSHFS:
sudo apt-get install sshfs
- Add root to the fuse group:
sudo adduser root fuse
- Create the local backup director
mkdir backup
- Then mount the remote /home directory to backup:
sshfs -o idmap=user <username>@<remote system's ip>:/home backup
- Let's check if the remote directory got mounted to /backup:
mountdf -h
- To unmount the directory
Check the backup folder to see your remote directory...fusermount -u backup
Source: howtoforge
Comments
Post a Comment