Difference between revisions of "EBC Exercise 08 Mounting a Remote Directory via-sshfs"
m |
m |
||
Line 3: | Line 3: | ||
{{YoderHead}} | {{YoderHead}} | ||
− | + | 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''' | ||
{{YoderFoot}} | {{YoderFoot}} |
Latest revision as of 07:00, 24 September 2019
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
Embedded Linux Class by Mark A. Yoder