Mounting a Remote Filesystem via ssh on Linux Ubuntu
What is the fastest way ever to have available on your computer the contents of the file system of a remote server accessible via local network or the Internet? Until recently, personally I would have necessarily thought that the only way to solve this problem was to create an archive on the remote server to be able to download and unzip locally, which we know, is quite costly both in terms of time and disk space and bandwidth required …
But, apparently I was wrong: it seems there are no limits to the power and flexibility of Linux! I have found that you can solve the problem in a much faster which is “simply” in the mount remote filesystems as local directory through a secure ssh, without any open window of vulnerability on the remote server.
Here are the steps needed to be covered:
installed packages sshfs and fuse-utils:
sudo aptitude install fuse-utils sshfs
verified that the kernel module “fuse” is loaded. Lancindo the following command, you should get as output a line containing the word “fuse”
lsmod | grep fuse
Simply mount the file system remotely with a command similar to the following:
mkdir-p / mnt / sshfs /
sshfs remote-user @ remote-machine: / some / directory / mnt / sshfs
where “remote-user” is the user that the user authorized to access the remote server “remote-machine”
That’s it! Easy no?

