💾 Archived View for darknesscode.xyz › notes › sshfs-a-network-filesystem.gmi captured on 2024-02-05 at 09:41:07. Gemini links have been rewritten to link to archived content

View Raw

More Information

⬅️ Previous capture (2023-11-04)

-=-=-=-=-=-=-

SSHFS Mounting a remote filesystem over ssh

SSHFS allows you to mount a remote filesystem using SFTP. Most SSH servers support and enable this SFTP access by default, so SSHFS is very simple to use - there's nothing to do on the server-side.

Syntax

sshfs [user@]host:[dir] mountpoint [options]

Examples

To use sshfs you need a mounting point in your system, in Linux system usually the mount point is in /mnt directory.

Create a mounting point (example)

mkdir ~/Documents/myVideos
sudo mkdir /mnt/myVideos

You can create a mounting point in another directories like you home directory or anywere you like.

To mount a directory

sshfs user@000.000.000.0000:/home/user/Videos ~/mnt/myVideos -o reconnect

Or, we can use domain name/host

sshfs user@domain.com:/home/user/Videos ~/mnt/myVideos -o reconnect

To unmount a directory

fusermount3 -u ~/mnt/myVideos

For more information check the manpage

man sshfs

----------

Home

Linux

Notes

MicroLog

----------

© DarknessCode