EBC Exercise 08 Mounting a Remote Directory via-sshfs

From eLinux.org
Jump to: navigation, search


thumb‎ Embedded Linux Class by Mark A. Yoder


sshfs is a handy tool that lets you access a remote directory via ssh. Therefor you can have files on your Bone computer appear on your host computer.

Installing

To make the Bone's files appear on your host.

host$ sudo apt update
host$ sudo apt install sshfs

Mounting

Then make a directory where you want them to appear.

host$ mkdir bone.files

The mount them. The 192.168.7.2 is the address of the bone. debian is the login name and the :. says to use debians home directory. (If you've set up the shortcuts you could just use ssh bone:. bone.files.)

host$ sshfs debian@192.168.7.2:. bone.files
host$ ls bone.files

You should see the files in debian's home directory on the bone.

Unmounting

When you are done run:

host$ sudo umount bone.files




thumb‎ Embedded Linux Class by Mark A. Yoder