SSH (Secure Shell) is a network protocol that allows secure communication between two network devices. We use ssh primarily to access Linux and Unix based system shell remotely. But we can also use ssh to mount remote machine file system on local machine. For that you need to install SSHFS packaged on your machine. SSHFS is a filesystem client based on the SSH File Transfer Protocol.

To install sshfs via YUM, run:

yum install sshfs

To install sshfs via APT, run:

apt-get install sshfs

How to Use
sshfs user@remote_machine mount_point

For eg. If we need to mount /root partition of server then,
First create a mount point

mkdir /mnt/root

Then run sshfs as,

sshfs root@ /mnt/root
Remote File System through SSH

Leave a Reply

Your email address will not be published. Required fields are marked *

Notify me of followup comments via e-mail. You can also subscribe without commenting.

Recommend on Google