SSHFS: Difference between revisions

Tboston (talk | contribs)
mNo edit summary
Vera (talk | contribs)
m Fixed typo in code block
Line 4: Line 4:
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">
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 = "myuser@10.0.1.100:/mydata";
   fsType = "sshfs";
   fsType = "sshfs";
   options = [
   options = [