knowledge/technology/linux/filesystems/SSHFS.md
2024-01-17 09:00:45 +01:00

660 B

arch-wiki obj
https://wiki.archlinux.org/title/SSHFS filesystem

SSHFS

SSHFS is a FUSE Filesystem based on the SSH and SFTP Protocol.

Mounting

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

Automount

fstab entry:

user@host:/remote/path /local/path  fuse.sshfs noauto,x-systemd.automount,_netdev,users,idmap=user,IdentityFile=/home/user/.ssh/id_rsa,allow_other,reconnect 0 0

Options

-p [PORT]          - SSH Port
-C                 - Compression
-o reconnect       - reconnect
-o idmap=TYPE      - TYPE = none, user, file | Map UID and GIDs
-o follow_symlinks - Symlinks