Difference between revisions of "EBC Exercise 08 Mounting a Remote Directory via-sshfs"

From eLinux.org
Jump to: navigation, search
(Initial info)
 
m
 
(One intermediate revision by the same user not shown)
Line 1: Line 1:
[[Category:ECE497 |Tips]]
+
[[Category:ECE497]]
  
 
{{YoderHead}}
 
{{YoderHead}}
  
Some useful tips and tricks for Linux and the Beagleboard.
+
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.
  
== Interesting Links ==
+
== 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


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