A bash script for managing SSHFS connections.
- bash
- sshfs
The script has been created and tested on a Arch Linux (x86_64) machine with the following requirements versions:
GNU bash, version 4.4.11(1)-release
SSHFS version 2.8
FUSE library version: 2.9.7
fusermount version: 2.9.7
using FUSE kernel interface version 7.19
- Download or clone this git repository on your machine.
- Open
sshfs-manager
directory in terminal. - Run
bash sshfs-manager.sh install
and follow the install instructions on the screen. - Close current terminal and open a new one.
- Run
sshfs-mgr --help
and enjoy!
Use sshfs-mgr
in combination with a command from the list:
Command | Description |
---|---|
install |
Start the process of script installation. User will be asked for the mount path under which all servers will be mounted. |
add-server / add |
Add new server form with required data: server address, SSH user, source & mount directories and SSHFS options. |
connect |
A list of added servers will be displayed and the user will have to choose a server to connect to. |
disconnect |
Disconnect all connected servers. |
disconnect [server] |
Disconnect a specific connected server by providing the server address. |
help / --help |
Print help menu. |