💾 Archived View for darknesscode.xyz › notes › sshfs-a-network-filesystem.gmi captured on 2024-08-24 at 23:57:16. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2023-11-04)
-=-=-=-=-=-=-
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.
sshfs [user@]host:[dir] mountpoint [options]
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.
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
fusermount3 -u ~/mnt/myVideos
For more information check the manpage
man sshfs
----------
----------
© DarknessCode