Discover ways to simply mount distant directories with the assistance of a safer SSH instrument. Observe together with Jack Wallen in our step-by-step tutorial.
Do you will have distant directories you want to mount in your native desktop so you possibly can work on code, configurations, documentation or simply about any form of file? If these distant recordsdata are on a server and also you don’t wish to share them through the much less safe Samba, Safe Shell has you coated.
Because of an app referred to as Safe Shell File System (a.ok.a. sshfs), you possibly can simply mount distant directories, with the assistance of the safer SSH instrument. Let me present you the way it’s completed. I’m going to reveal on an Ubuntu-based Linux distribution, so in the event you use a distinct OS, you’ll want to change the set up command.
- To put in sshfs, open a terminal window and difficulty the command:
sudo apt-get set up sshfs -y
As soon as the applying is put in, you’re prepared to make use of it.
- Let’s say you wish to mount your property listing on a machine at IP tackle 192.168.1.60 and mount it on an area listing referred to as MOUNT. To do this, the command can be one thing like this:
sshfs USER@192.168.1.60:/house/USER /house/USER/MOUNT
the place USER is your username. You’ll be prompted for the distant consumer’s password.
- Upon profitable authentication, the distant listing can be mounted within the MOUNT listing. You’ll be able to confirm this by issuing the command:
ls MOUNT
from inside the mum or dad listing housing MOUNT, and also you’ll see an inventory of the distant listing contents. Now you possibly can open these recordsdata as if they have been in your native machine.
And that’s how simple it’s to mount a distant listing to your native machine with the assistance of sshfs. This technique is safer than utilizing a Samba share and is way simpler than NFS. Give sshfs a attempt to see if it makes your workflow simpler.
Subscribe to TechRepublic’s How To Make Tech Work on YouTube for all the newest tech recommendation for enterprise execs from Jack Wallen.