SSH Filesystem
* Setup SSHFS on Ubuntu
:~$ sudo apt-get install sshfs
Reading package lists… Done
Building dependency tree
Reading state information… Done
The following packages were automatically installed and are no longer required:
libjs-scriptaculous libreoffice-officebean php5-gd
libreoffice-filter-mobiledev libmcrypt4 ttf-sil-gentium-basic php5-mcrypt
libhsqldb-java libjs-prototype libnusoap-php
Use ‘apt-get autoremove’ to remove them.
The following NEW packages will be installed:
sshfs
0 upgraded, 1 newly installed, 0 to remove and 262 not upgraded.
Need to get 43.4 kB of archives.
After this operation, 123 kB of additional disk space will be used.
Get:1 http://us.archive.ubuntu.com/ubuntu/ precise-updates/main sshfs i386 2.3-1ubuntu0.1 [43.4 kB]
Fetched 43.4 kB in 1s (32.3 kB/s)
….
:~$ sshfs -h
usage: sshfs [user@]host:[dir] mountpoint [options]
…
* Mount a filesystem
:~$ sshfs root@192.168.1.18:/home/b0th ~/b0th * Umount a filesystem
:~$ fusermount -u ~/b0th/
Ref => http://fuse.sourceforge.net/sshfs.html
* Enjoyed.
P/s:
$ sshfs root@192.168.1.18:/home/b0th ~/b0th
fuse: mountpoint is not empty
fuse: if you are sure this is safe, use the ‘nonempty’ mount option
If you see this error, try the below as suggested.
$ sshfs -o nonempty root@192.168.1.18:/home/b0th ~/b0th
Leave a comment