Sometimes we have to mount remote filesystem. In this short snippet I will show you how to do it.
You have to have applications: sshfs and fusermount. The first one is used for mounting remote filesystems and the second one is used for unmounting it.
Mounting filesystem on desired catalogue:
[[email protected]:~]$ sshfs [email protected] desired-catalogue
And that’s it! You have mounted remote filesystem on desired-catalogue! You can edit and do whatever you want with desired-catalogue as it was in your filesystem:
[[email protected]:~]$ ls desired-catalogue your-favourite-file.txt another-file.xml
For unmounting operation just type:
[[email protected]:~]$ fusermount -u desired-catalogue [[email protected]:~]$ ls desired-catalogue