SSHFS: Difference between revisions

From NixOS Wiki
Klinger (talk | contribs)
m also Category:Networking (SSHFS is a way to attach a network storage - it may be interesting from the user perspective to discover it while searching for networking solutions to attach a serverstorage)
Onny (talk | contribs)
Add "see also" section
 
Line 15: Line 15:
</syntaxhighlight>
</syntaxhighlight>


== See also ==
* [[Rclone]], which also supports mounting via SFTP. Possibly a more robost and stable implementation.


[[Category:Filesystem]]
[[Category:Filesystem]]
[[Category:Networking]]
[[Category:Networking]]

Latest revision as of 21:32, 4 July 2024

SSHFS is a file system that allows users to mount and access remote files over SSH (Secure Shell) connections, providing secure and encrypted access to remote data.

Configuration

Following example configuration will mount the remote filesystem /mydata of the host 10.0.1.100 at the destination /mnt. Authentication is done via the user myuser and the private key /root/.ssh/id_rsa.

fileSystems."/mnt" = {
  device = "myuer@10.0.1.100:/mydata";
  fsType = "sshfs";
  options = [
    "nodev"
    "noatime"
    "allow_other"
    "IdentityFile=/root/.ssh/id_rsa"
  ];
};

See also

  • Rclone, which also supports mounting via SFTP. Possibly a more robost and stable implementation.