82.4 SSH File System

20210913

Using your ssh connection to a remote server you can connect (technically, mount) folders from the remote server’s file system to your local host. In the example below we connect to user kayon’s account on host example.com accessing kayon’s remote login directory /home/kayon/ locally as ~/mnt/example/. The destination directory (~/mnt/example/ here) must already exist locally.

sshfs kayon@example.com:/home/kayon/ ~/mnt/example/

Note that if the source on the remote host is a symbolic link to the actual device, be sure to include the terminating backslash.

To un-mount the file system:

fusermount -u ~/mnt/example

For fstab:

kayon@example.com:/home/kayon/ /media/example fuse.sshfs defaults 0 0


Your donation will support ongoing availability and give you access to the PDF version of this book. Desktop Survival Guides include Data Science, GNU/Linux, and MLHub. Books available on Amazon include Data Mining with Rattle and Essentials of Data Science. Popular open source software includes rattle, wajig, and mlhub. Hosted by Togaware, a pioneer of free and open source software since 1984. Copyright © 1995-2022 Graham.Williams@togaware.com Creative Commons Attribution-ShareAlike 4.0