Skip to content

Instantly share code, notes, and snippets.

@M41KL-N41TT
Last active December 25, 2023 03:37
Show Gist options
  • Save M41KL-N41TT/4c125e363a3472f949c848d2c9a51e68 to your computer and use it in GitHub Desktop.
Save M41KL-N41TT/4c125e363a3472f949c848d2c9a51e68 to your computer and use it in GitHub Desktop.
SSHFS command

SSHFS Command - Optimal Configuration ✨

Elevate your SSHFS experience with this command, meticulously tuned for peak performance and security.

sshfs -o noauto_cache,no_readahead,cache=no,kernel_cache,direct_io,workaround=fstat \
      -o reconnect,follow_symlinks,default_permissions,allow_other,Ciphers=chacha20-poly1305@openssh.com \
      -o compression=no,cache=no -o ServerAliveCountMax=5,ServerAliveInterval=2,ConnectTimeout=2

Option Breakdown 🌟

  • noauto_cache: Silencing automatic caching.
  • no_readahead: Subduing readahead.
  • cache=no: Banning caching.
  • kernel_cache: Indulging in kernel caching.
  • direct_io: Channeling data through direct I/O.
  • workaround=fstat: Artfully applying the fstat workaround.
  • reconnect: Mastering the art of reconnection.
  • follow_symlinks: Elegantly following symbolic links.
  • default_permissions: Embracing the beauty of default permissions.
  • allow_other: Extending an invitation to other users.
  • Ciphers=chacha20-poly1305@openssh.com: Entrusting the chacha20-poly1305 cipher for encryption.
  • ServerAliveCountMax=5,ServerAliveInterval=2,ConnectTimeout=2: in case of a spotty connection, prevent timing out and losing the sshfs connection
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment