Hoplix

Hoplix is a file transfer client for Windows and Linux, written in Rust with iced. It connects to SFTP, SCP, FTP, FTPS and WebDAV servers and to Amazon S3 or S3-compatible storage, transfers files and whole folders, compares and synchronises folders and opens files in external programs. A command-line tool, hoplix-cli, uses the same core.

Work in progress: Hoplix is at an early stage of development. Features, settings files and the user interface may still change.

Feedback and bug reports are welcome as issues. Not affiliated with or endorsed by Microsoft, the GNOME project, KDE, Nextcloud or ownCloud. Windows is a trademark of the Microsoft group of companies.

Hoplix in light mode with two panes showing demo folders Hoplix in dark mode with two panes showing demo folders

Features

Installation

Download one of the files from Releases:

The Linux programs need the C library (glibc 2.35 or newer, as in Ubuntu 22.04, Debian 12 and Fedora 36) and, for the window, the libraries for X11 and Wayland (libxkbcommon, libwayland-client, libX11, libX11-xcb, libXcursor, libXi, libxkbcommon-x11); the packages pull them in. EGL (libegl1, libwayland-egl1) is recommended for drawing with the graphics card; without it, Hoplix draws in software.

Portable mode: if a file named hoplix.portable is next to hoplix.exe or hoplix (and hoplix-cli), all configuration files – settings, sites, open tabs, trusted keys and certificates, the encrypted password file, recent connections, bookmarks, unfinished transfers and the history – are kept in the folder config next to the programs instead of your user profile. Delete the file to go back to the user profile; an existing HOPLIX_CONFIG_DIR environment variable still wins. In portable mode, new installations keep saved passwords in the file encrypted with a master password, because entries in the Windows Credential Manager or the system keyring would stay on the computer; you can still choose the keyring in Settings → Saved passwords. Files opened for editing are still copied to the temporary folder of the computer. The installer and the Linux packages do not include the file.

Versions 0.x are published as pre-releases. The programs are not signed, so SmartScreen may warn on the first start: "More info" → "Run anyway". Each file has a .sha256 file to verify the download, and the release notes link a VirusTotal scan. Changes are listed in the changelog.

Installer parameters

The installer accepts the usual Inno Setup parameters, e.g. for a silent installation:

ParameterEffect
/CURRENTUSERInstall for the current user only (default)
/ALLUSERSInstall for all users (asks for administrator rights)
/DIR="C:\Path"Installation folder
/SILENT, /VERYSILENTWithout wizard (with or without progress window)
/SUPPRESSMSGBOXESNo message boxes in silent mode
/TASKS="desktopicon"Add a desktop shortcut; without the parameter there is none
/NOICONSNo Start menu entry
/LOG="C:\Path\setup.log"Write a log file

Example: Hoplix-0.2.0-windows-x64-setup.exe /VERYSILENT /SUPPRESSMSGBOXES /ALLUSERS /TASKS="desktopicon"

Settings such as the language, the layout or the editor are stored per user and are not set by the installer. Uninstalling removes the program and its shortcuts but keeps your settings, sites and trusted server keys in %APPDATA%\Hoplix and the passwords saved in the Windows Credential Manager.

Usage

Keyboard shortcuts

Shortcuts work in the file list, not while you type in a text field.

KeysAction
Ctrl+KCommand palette
EnterOpen the selected folder or file
F4Edit the selected file in the external editor
F3Show or hide the preview
Backspace, Alt+↑Parent folder
F5Refresh
F2Rename
DelDelete (asks first)
↑, ↓, Page ↑, Page ↓, Home, EndMove the selection; with Shift, extend it
Ctrl+ASelect all
Ctrl+FFilter the list (Esc clears the filter)
Ctrl+Shift+FSearch in subfolders
Alt+←, Alt+→, mouse back and forward buttonsBack, forward
Ctrl+BBookmark the current folder
Ctrl+Shift+CCopy the paths of the selection
Alt+EnterProperties and permissions
Ctrl+DCompare the folders, or stop comparing
Ctrl+Shift+DSynchronise the folders
Ctrl+T, Ctrl+WNew tab, close tab
Ctrl+Tab, Ctrl+Shift+TabNext, previous tab
EscClose a dialog, the palette or a page; clear the filter

Ctrl+F and Ctrl+Shift+F also work while a text field has the focus. While the filter field has the focus, the arrow keys and Enter still move through and open the list.

Command line

hoplix-cli offers the same operations without a window:

hoplix-cli ls sftp://user@example.com/var/www --key ~/.ssh/id_ed25519
hoplix-cli get sftp://user@example.com/~/backup.tar.gz . --password-env HOPLIX_PASSWORD --resume
hoplix-cli put report.pdf sftp://user@example.com:2222/srv/files/ --key id_ed25519 --passphrase-env KEY_PASS
hoplix-cli ls ftpes://user@example.com/www --password-env HOPLIX_PASSWORD
hoplix-cli get ftp://ftp.example.com/pub/readme.txt .
hoplix-cli ls sftp://user@internal.example.com/srv --agent --jump user@bastion.example.com --jump-agent
hoplix-cli get ftpes://user@example.com/www/index.html . --password-env HOPLIX_PASSWORD --proxy socks5://proxy.example.com --proxy-user me --proxy-password-env PROXY_PASSWORD
hoplix-cli put -r website sftp://user@example.com/var/www --key id_ed25519 --skip-existing
hoplix-cli cp -r sftp://user@old.example.com/srv/data sftp://user@new.example.com/srv/ --key id_ed25519
hoplix-cli compare -r website sftp://user@example.com/var/www --key id_ed25519
hoplix-cli sync -r website sftp://user@example.com/var/www --key id_ed25519 --delete --exclude "*.tmp" --dry-run
hoplix-cli find sftp://user@example.com/var/www "*.log" --depth 3 --key id_ed25519
hoplix-cli chmod -r 755 sftp://user@example.com/var/www/cgi-bin --key id_ed25519
hoplix-cli ls s3://my-bucket/backups --region eu-central-1 --access-key demo-access --secret-env S3_SECRET
hoplix-cli put -r photos s3://my-bucket/photos --endpoint http://192.168.1.20:9000 --path-style --access-key demo-access --secret-env S3_SECRET

Saved sites work as targets too, with their saved password or passphrase:

hoplix-cli sites
hoplix-cli ls "site://Web server/var/www"
hoplix-cli get site://Work%2FBackup/~/backup.tar.gz . --master-password-env HOPLIX_MASTER
hoplix-cli sites export sites.hoplix-sites
hoplix-cli sites export work.hoplix-sites --folder Work --include-passwords --password-env EXPORT_PASSWORD
hoplix-cli sites import work.hoplix-sites --password-env EXPORT_PASSWORD --folder "From laptop"

Commands: ls, stat, get [-r], put [-r], cp [-r], mkdir, rm [-r], mv, chmod [-r], find, sites. -r copies folders with everything in them; cp copies between any two targets, also from one server to another. If the destination is an existing folder, the source is copied into it, otherwise it gets the destination's name. Existing files are overwritten unless you pass --resume (complete smaller files, skip equal ones), --skip-existing or --keep-both. Like the app, get, put and cp keep the modification time of the source where the target can set it. --retries <n> (0 to 10, default 3) and --retry-delay <seconds> (1 to 60, default 1; each further wait is twice as long) set the retries after a dropped connection. --limit-download <rate> and --limit-upload <rate> limit the speed, for example 500K or 2M (a number without unit means KiB/s, 0 no limit); a copy between two servers is limited by both. These four options work with get, put, cp and sync. --verify (also for get, put, cp and sync) compares every copied file with its original like the app does and prints one line per file: verified (SHA-256), size checked (no checksum support) or MISMATCH (…), which fails the command. The transfer queue and the history are part of the app only. Progress is shown on stderr when it is a terminal. sites lists the name and address of every site, without user names. Sites are named by name or by folder/name (write / as %2F); --password-env or --key override the saved secret. With a master password, pass its environment variable with --master-password-env. Site targets use the advanced settings of the site (timeouts, keep-alive, FTP mode and encoding), and sync runs at most as many transfers in parallel as the sites allow. sites export <file> writes all sites, or with --folder <name> one folder, to a file without passwords; --include-passwords adds the saved passwords and encrypts the file with the password from the environment variable named by --password-env. sites import <file> adds the sites to the folder Imported <date> (date in UTC) or the folder given with --folder; an encrypted file needs --password-env. Saved passwords in a master password file need --master-password-env for both commands. URLs start with sftp://, ftp://, ftpes:// (FTPS, explicit TLS), ftps:// (FTPS, implicit TLS), davs:// (WebDAV over HTTPS) or dav:// (WebDAV over unencrypted HTTP); FTP URLs without a user sign in anonymously. For WebDAV the URL path is the full path on the server, for example davs://user@cloud.example.com/remote.php/dav/files/user/Documents; site targets use the base path saved with the site. Passwords and passphrases are only read from environment variables whose name you pass, never from the command line. Unknown server keys and untrusted certificates are refused unless you add --accept-host-key (this run) or --remember-host-key. hoplix-cli help lists all options.

--agent signs in with the keys of the running SSH agent (SFTP and SCP): on Windows the OpenSSH agent (\\.\pipe\openssh-ssh-agent, or the pipe named in SSH_AUTH_SOCK) and Pageant, on Linux the agent in SSH_AUTH_SOCK; Hoplix tries every key the agent offers. --jump user@host[:port] connects to the SFTP or SCP server through an SSH jump host and signs in there with --jump-key <file> (with --jump-passphrase-env <name> if the key has a passphrase), --jump-password-env <name> or --jump-agent; the jump host's server key is checked like any other. --proxy socks5://host[:port] (SOCKS5, default port 1080, the proxy resolves host names) or --proxy http://host[:port] (HTTP CONNECT, default port 8080) sends the connections through a proxy; add --proxy-user <name> and --proxy-password-env <name> if it needs a sign-in. FTP and FTPS work through a proxy in passive mode only; WebDAV works through both kinds of proxy. Jump host and proxy apply to every server of the command; for saved sites they replace the jump host and proxy saved with the site, which are used otherwise (with their saved passwords).

SCP targets look like scp://user@host[:port]/path. If an SSH server asks sign-in questions such as a one-time code, hoplix-cli asks them on the terminal (answers to secret questions are not shown, input is hidden before the question appears), says when the server asks the same questions again, and stops with a clear message when stdin is not a terminal. --password-env answers the Password: question once per attempt, also when the server starts over after a wrong code, but not again once the server rejected it; without --key, --agent or --password-env, a terminal user answers all questions. Ctrl+C during a hidden question leaves the terminal as it was (input shown again). After a mistake in the arguments, hoplix-cli prints the error and a pointer to hoplix-cli help; write a literal % in URLs as %25. get --resume reports only the bytes that were actually transferred, and sync --dry-run into a folder that does not exist yet says that it would be created and lists everything it would copy. For get, put, cp, compare and sync between two servers with different passwords, --to-password-env <name> reads the password of the second target (<to>, or <b> in compare); --password-env (also written --from-password-env), --key and --agent then only apply to the first target.

S3 targets are written s3://bucket/folder/file and need --access-key <id> and --secret-env <name>, the environment variable with the secret access key; --session-token-env <name> adds a temporary session token. --endpoint https://host[:port] selects an S3-compatible server (default: Amazon S3 in --region, default us-east-1); http://host[:port] is accepted for local test servers and prints a warning. --path-style puts the bucket into the path, which most local servers such as MinIO need. Saved S3 sites (site://…) use their saved settings and secret; --access-key and --secret-env replace them. In cp, sync and compare between S3 and another server, --secret-env is used for S3 and --password-env for the other server; for saved sites, a single one of the two is used for every site. chmod and modification times are not available on S3; sync and compare print a note and treat a newer file on S3 as unchanged if its size is the same.

find <target> <pattern> [--depth <n>] prints the full path of every name in the folder and its subfolders that contains the pattern or, with * and ?, matches it (ignoring case; quote the pattern so the shell does not expand it); --depth 1 searches only the folder itself. Folders that cannot be read are reported on stderr and make the exit code 1. chmod <mode> <target> sets the permissions as three or four octal digits (for example 644 or 0755); with -r also of everything inside a folder (links are skipped), and it prints how many entries changed. It works with SFTP, FTP servers that support SITE CHMOD, and local paths on Linux and macOS; elsewhere it reports not supported here. stat also shows the permissions, owner and group where known, and on Windows the read-only and hidden attributes.

compare <a> <b> [-r] prints one line per difference (only-first, only-second, newer-first, newer-second, size, type, invalid-name) and a summary. sync <from> <to> [-r] copies new and newer files from <from> so that <to> matches it and creates <to> with all missing parent folders if it does not exist; --mirror also replaces files that are newer in <to>, --delete additionally deletes what is missing in <from>, --dry-run only lists the plan. Both take --size-only, --skip-hidden and --exclude <pattern> (several times).

Names that a server lists but that cannot be used as a single file name on the other side are skipped by cp -r and sync: an empty name, ., .., names with / and, on Windows, names with \ : * ? " < > |, control characters, a trailing dot or space, or a reserved device name such as CON or NUL. Every skipped name is reported on stderr, the other files are still copied, and the exit code is 1. Nothing is ever written outside the target folder. A server's root folder, which has no name of its own, is copied into a folder named after the bucket (S3) or the host (with _port for a port other than the default), for example cp -r s3://bucket/ backup creates backup/bucket. ls leaves out empty names, ., .. and names with / and reports them on stderr.

How it works

Privacy

Hoplix connects to the servers you enter yourself and, for the update check, to GitHub; there is no telemetry.

License

MIT © TripleT3005

Release packages, the installer and the Linux packages include THIRD-PARTY-LICENSES.txt with the licenses of all third-party components built into Hoplix. The CI fails if a dependency uses a license that is not on the allow list in scripts/third_party_licenses.py.