4.0.7 • Published 8 years ago
sshfs-box v4.0.7
SSHFS box
CLI tool to manage remote directories with SSHFS.
Features
- One tool to manage all of your SSHFS remote directories.
- Great error messages that will tell you exactly what went wrong.
- Error recovery, in case there is any broken hanging SSHFS processes, sshfs-box will give you option to kill them.
Prerequisites
Dependencies:
node.js>= 8- Commands used under the hood that your operating system needs to support:
sshfsfusermountmountpskill
npmto install
Supported operating systems
- Ubuntu – tested, works
- MacOs – tested on older versions of sshfs-box, should work
Install
npm install --global sshfs-box
Usage
sshfs-box- Starts the interface for mounting/unmounting.
- When running for the first time, it will prompt to create a new config.
sshfs-box --configorsshfs-box -c- Configure remote & local paths to connect.
sshfs-box --help- Displays available CLI commands.
Configuration
- Configuration is displayed when sshfs-box app is run for the first time or when passing the
--configflag. - Config is stored in
~/.config/sshfs-box.json.
Config example
{
urls: [
"username@host1:",
"username@host2:/home/user",
"username@host2:/www"
],
"folder": "/home/username/remote"
},Config fields
urlsRequiredfield.Arrayof strings of remote locations that sshfs-box will connect to with SSHFS.
folderRequiredfield.Stringof the local folder where remote locations will be mounted.- If the folder does not exist, it will be created automatically.
- With the given example config
username@host:/dir/subdirwill be avaliable in/home/username/remote/username@host:-dir-subdir.
Potential improvements
- Mounting/Unmounting of multiple locations is currently done synchronously, maybe we could parallelize if performance is a problem.
- Add support for separator in config urls https://github.com/SBoudrias/Inquirer.js/#separator.