- Get Microsoft Office Pro and Windows 11 Pro for 87% off with this bundle
- Buy or gift a Babbel subscription for 78% off to learn a new language - new low price
- Join BJ's Wholesale Club for just $20 right now to save on holiday shopping
- This $28 'magic arm' makes taking pictures so much easier (and it's only $20 for Black Friday)
- This new wireless carrier promises ultra-secure mobile phone service
How to Mount Remote Directories with SSH (+Video Tutorial)
Learn how to easily mount remote directories with the help of a more secure SSH tool. Follow along with Jack Wallen in our step-by-step tutorial.
Do you have remote directories you need to mount on your local desktop so you can work on code, configurations, documentation or just about any kind of file? If those remote files are on a server and you don’t want to share them via the less secure Samba, Secure Shell has you covered.
Thanks to an app called Secure Shell File System (a.k.a. sshfs), you can easily mount remote directories, with the help of the more secure SSH tool. Let me show you how it’s done. I’m going to demonstrate on an Ubuntu-based Linux distribution, so if you use a different OS, you’ll need to modify the installation command.
- To install sshfs, open a terminal window and issue the command:
sudo apt-get install sshfs -y
Once the application is installed, you’re ready to use it.
- Let’s say you want to mount your home directory on a machine at IP address 192.168.1.60 and mount it on a local directory called MOUNT. To do that, the command would be something like this:
sshfs USER@192.168.1.60:/home/USER /home/USER/MOUNT
where USER is your username. You’ll be prompted for the remote user’s password.
- Upon successful authentication, the remote directory will be mounted in the MOUNT directory. You can verify this by issuing the command:
ls MOUNT
from within the parent directory housing MOUNT, and you’ll see a listing of the remote directory contents. Now you can open those files as though they were on your local machine.
And that’s how easy it is to mount a remote directory to your local machine with the help of sshfs. This method is more secure than using a Samba share and is far easier than NFS. Give sshfs a try and see if it makes your workflow easier.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the latest tech advice for business pros from Jack Wallen.