Linux: Mount Remote Filesystems with SSHFS (Step-by-Step Guide)
HardReset.InfoJanuary 1, 20269 min29 views
6 connectionsΒ·9 entities in this videoβPrerequisites: SSH Setup
- π‘ SSH service must be installed and running to use SSHFS.
- π Check SSH status with
sudo systemctl status ssh. - π οΈ Install OpenSSH Server if missing using
sudo apt install openssh-server. - β
Enable and start the SSH service with
sudo systemctl enable --now ssh.
Installing SSHFS
- π The
sshfspackage is required for mounting remote filesystems. - π¦ Install it using the command
sudo apt install sshfs. - π Verify the installation by checking the version:
sshfs --version.
Network Configuration and IP Address
- π Knowing your IP address is crucial for connecting to the remote system.
- β οΈ If using a Virtual Machine, ensure the network adapter is set to Bridged Adapter mode, not NAT.
- π An IP address starting with
192.168.x.x(or similar local network range) typically indicates a bridged adapter.
Preparing Directories
- π Create a remote directory on the source system (e.g.,
/home/user/remote_source). - π Add a test file (e.g.,
test.txt) to the remote directory to verify mounting. - π Create a local mount point directory on the client system (e.g.,
/home/user/remote_mount).
Mounting and Unmounting
- π Use the
sshfscommand with the syntax:sshfs user@IP:/path/to/remote/source /path/to/local/mount. - π You will be prompted for the remote user's password.
- π§ Verify the mount by listing the contents of the local mount point; it should contain the remote files.
- π To unmount, use the command
fusermount -u /path/to/local/mount.
Knowledge graph9 entities Β· 6 connections
How they connect
An interactive map of every person, idea, and reference from this conversation. Hover to trace connections, click to explore.
Hover Β· drag to explore
9 entities
Chapters4 moments
Key Moments
Transcript35 segments
Full Transcript
Topics13 themes
Whatβs Discussed
SSHFSLinuxMount Remote FilesystemSSHOpenSSH ServerUbuntuDebianIP AddressBridged AdapterVirtual MachineTerminal CommandsMount PointUnmount
Smart Objects9 Β· 6 links
ConceptsΒ· 2
ProductsΒ· 7