SSHFS: Difference between revisions
Add "see also" section |
m use modern ssh keys |
||
| Line 2: | Line 2: | ||
== Configuration == | == 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/ | 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_ed25519</code>.<syntaxhighlight lang="nix"> | ||
fileSystems."/mnt" = { | fileSystems."/mnt" = { | ||
device = "myuer@10.0.1.100:/mydata"; | device = "myuer@10.0.1.100:/mydata"; | ||
| Line 10: | Line 10: | ||
"noatime" | "noatime" | ||
"allow_other" | "allow_other" | ||
"IdentityFile=/root/.ssh/ | "IdentityFile=/root/.ssh/id_ed25519" | ||
]; | ]; | ||
}; | }; | ||