how_to_use_sshfs_to_mount_anything
no way to compare when less than two revisions
Differences
This shows you the differences between two versions of the page.
— | how_to_use_sshfs_to_mount_anything [2010/12/03 23:27] (current) – created tkbletsc | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== How to use SSHFS to mount anything ====== | ||
+ | |||
+ | SSHFS ("SSH File System" | ||
+ | |||
+ | $ sudo apt-get install sshfs | ||
+ | $ sudo adduser < | ||
+ | |||
+ | You can install it on RHEL5/ | ||
+ | |||
+ | register$ mkdir mntpoint | ||
+ | register$ sshfs break:/ mntpoint | ||
+ | register$ ls mntpoint | ||
+ | | ||
+ | | ||
+ | register$ echo something > mntpoint/ | ||
+ | bash: mntpoint/ | ||
+ | |||
+ | Neat, but what if we want root access to that system? | ||
+ | |||
+ | register$ sshfs root@break:/ | ||
+ | |||
+ | You'll need the root password to that last bit. | ||
+ | |||
+ | You can go all crazy and mount a bunch of stuff at once: | ||
+ | |||
+ | pac00# for A in `seq 0 9`; do mkdir pac0$A ; sshfs pac0$A:/ pac0$A ; done | ||
+ | |||
+ | That will make a directory for pac00 .. pac09 and mount that system' | ||
+ | |||
+ | Because this works on **any** system you can SSH to, it cuts through NAT routers and firewalls, and you can mount almost any OS, including: | ||
+ | * Linux | ||
+ | * VMWare ESX | ||
+ | * Solaris | ||
+ | * FreeBSD | ||
+ | * Mac OS X | ||
+ | * Windows (if you've installed an SSH server like Cygwin) | ||
how_to_use_sshfs_to_mount_anything.txt · Last modified: 2010/12/03 23:27 by tkbletsc