sftpman offers both a command-line tool (sftpman) and a GTK frontend (sftpman-gtk, see screenshot), each packaged separately.
With sftpman, you first setup (define) your remote filesystems and then you mount/unmount them easily (with one click/command).
In order to use sftpman or it's GTK frontend sftpman-gtk, you'll first need to have a working sshfs setup.
sftpman provides the base library and the command-line application sftpman.
sftpman-gtk provides the sftpman-gtk application, a GTK frontend to sftpman.
Each filesystem managed by sftpman needs to have a unique name/id which will be used when managing the system and also in its mount path. A system with an id of my-machine will be mounted locally to /mnt/sshfs/my-machine.
Authentication with the remote filesystem during mounting will be performed using SSH keys, so you'll need to have that setup. Password-based authentication is not supported. For more information on SSH keys see: How to Use RSA Key Authentication with SSH
To define a new remote filesystem using the command-line tool, do:
# sftpman setup --id "my-machine" --host "HOSTNAME_OR_IP" --user "USERNAME" \ --mount_point "/REMOTE_PATH" --ssh_key "PATH_TO_PRIVATE_KEY"
The above setup is the minimum you need to specify to define a new filesystem that sftpman can mount. Depending on your environment, you may need to use some more options (like --port, which defaults to 22). To see a full list of available options do:
# sftpman help
You can also use the GTK frontend to define new filesystems more easily.
Once you've defined several filesystems, you can mount them by using their ids.
# sftpman mount my-machine
which mounts the filesystem to /mnt/sshfs/my-machine
# sftpman unmount my-machine
Removing defined filesystems
To remove a defined filesystem from sftpman's list do:
# sftpman rm machine-id
To see a list of more commands and options that sftpman supports, consult the help:
# sftpman help
sftpman can perform some basic checks on the environment, which may catch some potential problems:
# sftpman preflight_check
If mounting a filesystem fails, sftpman will give you the full sshfs command and its output. You can then use that command and run it manually (possibly after adding some more debug options to it, so you would see some more output).
sftpman - sftpman (source code, issue tracker) at github
sftpman-gtk - sftpman-gtk (source code, issue tracker) at github
sftpman-aur - AUR packages (source code, issue tracker) for sftpman and sftpman-gtk at github