💾 Archived View for darknesscode.xyz › notes › sshfs-a-network-filesystem.gmi captured on 2022-01-08 at 13:53:03. Gemini links have been rewritten to link to archived content
⬅️ Previous capture (2021-12-05)
-=-=-=-=-=-=-
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.
Arch Linux
sudo pacman -S sshfs
Debian
sudo apt install sshfs
Void Linux
sudo xbps-install -S fuse-sshfs
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