SftpMan GTK 0.3.0
GTK frontend for SftpMan
SftpMan consists of a Command Line and a GTK application that make it simpler to setup and mount SSHFS/SFTP file systems.
The idea was to develop a simple CLI/GUI application for Linux that can be used to manage SFTP file systems.
It relies on sshfs to do all the mounting work. SftpMan allows you to setup many remote filesystems and helps you easily mount/unmount them.
Every system managed by SftpMan is identified by an id such as my-machine, which is used in file paths and when managing the system.
Configuration data is stored in ~/.config/sftpman/ as JSON files.
All systems are mounted under /mnt/sshfs/. For the my-machine machine, that would be /mnt/sshfs/my-machine.
In order to setup an sftp system for further use (mounting/unmounting) you need to specify:
- Port (defaults to 22)
- Remote username/login
- SSH private key (you need its corresponding public key added to the remote user's .authorized_keys file)
- Remote mount point (the remote directory you want mounted on your system)
- Options (options to pass to sshfs if you want something more advanced)
- Run before mount (a command to execute before mounting)
We currently don't (and probably never will) support mounting by using passwords (instead of keys).
If your SSH private key requires a password to use (as it should), you'll be asked for it.
The "Run before mount" command allows you to do whatever init stuff you want. I'm using it to initialize my ssh-agent (by adding my key there), so that I only have to type in the key password once.
Installing on other distributions
For other distributions you can install using pip:
pip install sftpman-gtk
You'll need to install pygtk manually, but maybe you already have that installed. Installing pygtk from pip would not work, because some of its dependencies are not available there.
You also need to install sshfs yourself.
If the SSH keys that you'll use for authentication are password-protected (as they should be) and you want the GUI Application to prompt you for a password, you may need to install the openssh-askpass package (or whatever it's called) for your distribution. Some distributions have that installed by default.