SSH file system share

Mounting a remote directory over SSH with sshfs is a convenient way to make remote files directly accessible on a Linux workstation or admin host without opening a broader network filesystem surface.

Command

sshfs [options] <user>@<host>:<source_path> <mount_point> 

Usage

sshfs -o ro -o allow_other user@host:/remote/path /local/mount/point

Where it fits

This approach fits occasional administrative access, lightweight data inspection, and controlled remote browsing when a full NFS, SMB, or distributed-storage setup would be unnecessary.

It is especially useful for Linux-heavy operations work where SSH access already exists and the priority is pragmatic access rather than maximum performance.

Automation

  • Add to /etc/fstab to mount on startup:

    • file system: <user>@<host>:<path>
    • mount point: <mount_point>
    • type: fuse.sshfs
    • options: e.g identityFile=<path>, allow_other, defaults, default_permissions, idmap=user etc.
    • dump: 0
    • pass: 0

    Example

    • user@host:/remote/path /mnt/remote fuse.sshfs identityfile=/home/user/.ssh/id_ed25519,allow_other,defaults,default_permissions,idmap=user 0 0

Design cautions

  • sshfs favors convenience over performance.
  • Startup automation should account for network availability and key-management hygiene.
  • Shared access via allow_other deserves careful local permission handling.