Sharing a directory with SSHFS
There are several ways to share a directory across a network. In enterprise settings, you’ll find the Network Filesystem (NFS), Samba, and various distributed filesystems. SSHFS isn’t used in enterprises quite as much, but it can still come in handy. The beauty of it is that all of its network traffic is encrypted by default, unlike with NFS or Samba. And, other than installing the SSHFS client program and creating a local mount-point directory, it doesn’t require any configuration beyond what you’ve already done. It’s especially handy for accessing a directory on a cloud-based Virtual Private Server (VPS) because it allows you to just create files in the shared directory rather than using scp
or sftp
commands to transfer the files. So, if you’re ready, let’s jump in.
Hands-on lab – Sharing a directory with SSHFS
For this lab, we’ll use two VMs. For the server, you can use any of...