SSHFS: Difference between revisions
(Initial page) |
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)) |
||
(3 intermediate revisions by 2 users not shown) | |||
Line 1: | Line 1: | ||
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. | [https://github.com/libfuse/sshfs 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 <code>/mydata</code> of the host <code>10.0.1.100</code> at the destination <code>/mnt</code>. Authentication is done via the user <code>myuser</code> and the private key <code>/root/.ssh/id_rsa</code>.<syntaxhighlight lang="nix"> | |||
fileSystems."/mnt" = { | |||
device = "myuer@10.0.1.100:/mydata"; | |||
fsType = "sshfs"; | |||
options = [ | |||
"nodev" | |||
"noatime" | |||
"allow_other" | |||
"IdentityFile=/root/.ssh/id_rsa" | |||
]; | |||
}; | |||
</syntaxhighlight> | |||
[[Category:Filesystem]] | |||
[[Category:Networking]] |
Latest revision as of 13:32, 26 June 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"
];
};