Skip to content

Instantly share code, notes, and snippets.

@fanurs
Last active February 18, 2025 21:17
Show Gist options
  • Save fanurs/6ddc1658165dc4398aeba4a0e71a51a3 to your computer and use it in GitHub Desktop.
Save fanurs/6ddc1658165dc4398aeba4a0e71a51a3 to your computer and use it in GitHub Desktop.

First, create a local directory that you want to mount the remote filesystem:

mkdir remote-mount

Assume that SSH configuration has already been set up for the remote server.

sshfs -o ro,default_permissions remote:/some/target/directory remote-mount

To unmount:

umount remote-mount
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment