Mounting remote folder (Fedora)

Posted by: Mo Mughrabi Add comments

If you are working with servers, you probably came through this issue before. Let's say you have two servers and you need to setup an automated backup or you want to share files from different server yet you want to save time writing scripts to pull the files or push the backup through FTP. Mounting a remote folder will save you lots of time since the mounted folder will act like a local folder and all you have to do is move or copy your files to the local path and its will be placed on the remote server. so, its useful for many uses and here is the steps on how to set it up on a linux fedora.

First, you will need to install the required package
yum install fuse
yum install fuse-sshfs

Then, grant the user access to the fuse group
usermod -G fuse linuxuser Replace linux user with your linux user

Now, you are ready to issue the command which will mount the remote folder on your current system.
sshfs -o nonempty 192.0.0.1:/remote_folder/full/path /local_folder/full/path

Where nonempty means that the remote folder is not empty
192.0.0.1 is the remote server IP address (local network or over the internet)
/remote_folder/full/path is the full path for the remote folder
/local_folder/full/path is the full path for the local folder to mount on (folder should be created first)

Put on your questions in the comment section if you have any & hope have fun networking,
Have a good day all,

Update: If you wish to unmount the folder you can use the following command
fusermount -u /local_folder/full/path

Leave a Reply

WP Theme & Icons by N.Design Studio
Entries RSS Comments RSS Login