Skip to main content

Posts

Showing posts with the label mount locally

Ubuntu: Mount remote directories on a local machine

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 : mount df -h To unmount the directory fusermount -u backup Check the backup folder to see your remote directory... Source : howtoforge