Secure Shell File System -SSHFS

SSHFS (Secure Shell File System) :

This allows you to securely mount remote directories from a server to your local machine over an SSH connection.

Let us do this.

For example – You have two Linux Servers

IP of Server A - x.x.x.A
IP of Server B - x.x.x.B

You wish to share say /123 Folder of Server B. You just perform following steps on Server A.

# dnf install sshfs -y 
# sshfs root@x.x.x.B:/123 /mnt
# df -h

You can see the remote folder is mpunted in /mnt.

After use you can unmount the /mnt folder.