2.3 Files and transfers
Translated from French; the French version prevails if the two differ.
In short. HexaConnect browses and transfers files over SFTP (with a shell fallback), FTP / FTPS and S3 object storage. The Files view in the sidebar, in the style of WinSCP, puts this computer and a server side by side: it compares two folders, synchronizes, keeps a remote folder up to date and gathers all transfers in a single queue. The SFTP panel of the SSH session is still available, and a remote file can be edited in your usual editor.
Files view
The Files entry in the sidebar, between API and Macros. It replaces the former “SFTP” entry. Direct link: rail=files; the old rail=sftp link leads there too.
Connections in tabs
- One tab per open file connection: SSH session (through its SFTP), “SFTP only”, FTP / FTPS, S3. Each tab carries a badge (SFTP, FTP, FTPS, S3) and keeps its own remote folder.
- + opens a saved SSH, SFTP, FTP or S3 session without leaving the view. With no connection open, the view offers “Open a connection…”.
- From a session tab: right-click → “Open in Files”.
Two panels, local and remote
- Columns: name, size, modification date; comparison status on the left, permissions on the right.
- Clickable path: each level leads to its folder. The pencil lets you type a path; Esc cancels. The local panel starts at “This computer” (list of drives).
- Multiple selection: click, Ctrl+click to add or remove, Shift+click for a range.
- Arrows between the panels: → uploads the local selection to the remote folder shown, ← downloads the remote selection to the local folder shown. Drag and drop from one panel to the other and from Windows File Explorer.
- Double-click: a folder opens; a remote file opens in the local editor and goes back to the server on every save (see “Remote editing”); a local file opens in the editor.
- Right-click menu: open, edit, upload or download, rename, permissions, properties, copy path, new folder, delete (a single confirmation for a selection). Presigned link for an S3 object.
- The local panel refreshes by itself when a file in the folder shown appears, changes or disappears.
Filter, hidden files, favorites
- Filter: text searched in the name, or a mask (
*.php); a!maskterm excludes (!*.log,*.php; !vendor). Separate several terms with “;”. The filter also applies to Compare, Synchronize and Keep up to date: what it excludes is “filtered”, never uploaded or deleted. - Hidden files: name starting with a dot, or the Windows hidden attribute.
- Favorites: a favorite remembers the connection, the remote folder and, optionally, the local folder. It is kept from one session to the next. A favorite from another connection switches to its tab, and opens the session if needed.
Compare
“Compare” matches the local folder and the remote folder shown, including subfolders. A banner counts the changes (“3 local changes, 1 item only on the server”).
| Status | Meaning |
|---|---|
| identical | same size, and the local copy is not newer |
| newer | the local copy is newer: to be uploaded |
| remote newer | the server has a newer version: never overwritten |
| local only | missing from the server: to be uploaded |
| remote only | missing from this computer (deleted only on request, see Synchronize) |
| different | different sizes with the same date, or a folder whose contents differ |
| filtered | excluded by the filter, or a working file (*.hcpart, ~$*, vim copies…) |
Comparison is based on date and size. An upload does not preserve the date: the server copy, newer and of the same size, is then identical. Tolerance: 2 seconds, 1 minute over FTP. Safeguards: 20,000 items at most; local links and junctions are not followed. A local file facing a remote folder, link or special file is never uploaded automatically.
Synchronize
- Uploads local changes (newer, local only, different), for the whole folder or only the local selection, after a preview: folders to create, files to upload, total size.
- A new folder is created on the server only if it receives something, or if it is really empty locally.
- Nothing is downloaded; a newer file on the server is left as is.
- Delete on the server: the preview lists what exists only on the server. To delete it, you must check the box (unchecked by default) and type “delete”. A folder goes with its contents. What the filter excludes is never deleted.
Keep remote up to date
- Watches the local folder shown: each saved file is uploaded to the same place under the remote folder after a short delay; a new folder is created there.
- A local deletion deletes nothing on the server. The filter and working files are respected.
- A green banner reminds you that watching is on (Stop button). It stops when the connection or the window closes.
SFTP panel of the SSH session
- Right-click the tab of an SSH session → “Session SFTP panel”; or “Open in SFTP” in the menu of a saved session (link
sftp=<id>). The panel appears in place of the session tree and follows the active tab. The SFTP connection reuses the session's settings and accepts only its host key. - Navigation by double-click, “..”, typed path, home folder.
- Upload and download of files and whole folders; drop from Windows File Explorer and drag to File Explorer.
- Rename, permissions (chmod), properties, new folder, copy path; confirmed deletion (name to retype for a non-empty folder).
- Follow the terminal's folder: the panel follows the shell's current folder (OSC 7 sequence). When the
buffercommand is on (see “File buffer between sessions”), the shell already announces its folder. Otherwise, for bash and zsh, the required hook line is shown, then sent on request. Nothing is written to the server's files. - Fallback without SFTP: if the server does not offer the SFTP subsystem, files go through POSIX commands over the SSH connection, with resume.
“SFTP only” session
A session type without a terminal. Its tab offers the same two panels as the Files view, including compare, synchronize, keep up to date, favorites and the transfer queue. FTP / FTPS and S3 sessions open the same way.
FTP and FTPS
- “FTP / FTPS (files)” session type, in the same view as SFTP and S3: navigation, drag and drop, transfer queue with resume, remote editing, rename, delete, permissions.
- Explicit FTPS (AUTH TLS, the default) or implicit FTPS (port 990), encrypted transfers; passive mode (EPSV then PASV); MLSD or LIST listings (Unix and DOS formats); UTF-8. Active mode is not available.
- One connection per transfer: you can keep browsing during transfers.
- A self-signed certificate is accepted only by its pinned SHA-256 fingerprint: the first connection shows the fingerprint, which you check and then paste into the session's “Certificate fingerprint”. Cleartext FTP is flagged (“unencrypted”, orange badge).
- Empty user = anonymous login. Password in the Windows vault, or asked for.
- SSH jump host possible: commands and data go through the SSH session (a server listening only on 127.0.0.1 can be reached this way).
S3 object storage
- “S3 object storage” session type: AWS or a compatible service (MinIO, OVHcloud, Scaleway, Ceph, Cloudflare R2), region, path-style or virtual-hosted-style addressing, starting bucket.
- Credentials: access key and secret key (asked for, or remembered in Windows Credential Manager), or a profile from
~/.aws/credentials(read, never copied, temporary token included). - Buckets and prefixes shown as folders; drag and drop; download resumed by range; multipart upload above 8 MiB; rename (copy then delete, folders included); new folder; deletion of a whole folder.
- Presigned link (1 hour or 7 days) copied from an object's menu; public bucket flagged (no access policy is modified).
- SSH jump host possible for a private endpoint.
- Limits: an interrupted multipart upload starts over from the beginning; object versions and storage classes are not shown; 100,000 objects at most per listed folder.
Remote editing
- Double-click a remote file (or “Edit”): it opens in the configured editor, otherwise Visual Studio Code, otherwise the associated app, otherwise Notepad. Above 10 MB, double-click downloads instead of opening.
- Each save is uploaded back to the server. In the Files view, a banner reminds you; “Close” stops the uploads.
- If the file has changed on the server in the meantime, HexaConnect asks what to do: upload nothing, replace, or take the server's version.
- Local copies are erased when the session closes.
Transfer queue
| Feature | Details |
|---|---|
| Tracking | At the bottom of the Files view: direction, file and destination, progress, speed or size, status. Ongoing transfers also appear in the status bar. |
| Control | Per file: pause, resume from offset (partial .hcpart file on this computer), cancel, retry failures. For the whole queue: Pause all (nothing starts until you resume) and Resume, Clear completed. |
| Conflicts | Keep both, skip, replace. |
| Parallelism | 1 to 6 files in parallel (3 by default); beyond that, transfers wait their turn. Two uploads to the same remote file never run at the same time. |
| Window closed | Transfers continue. The “Keep remote up to date” watch, however, stops. |
Download folder, editor and parallelism are set in Settings → Transfers.
File buffer between sessions
The buffer holds files and folders taken from one session so you can drop them into another, like copy and paste between servers. You fill it with a command line in the SSH terminal, or from a file's menu in the Files view and the SFTP panel. You empty it with one click into the session in front.
The buffer command
In an SSH session opened by HexaConnect, the buffer command is available without installing anything on the server.
| Command | Effect |
|---|---|
buffer file… | Copies one or more files or folders to the buffer. Relative paths, wildcards (*.log) and Tab completion work as usual. |
buffer -c file… | Cut: the item goes to the buffer, and the source is deleted only after a successful paste. |
buffer -l | Lists the buffer, numbered from newest to oldest, with size, source session and status. |
buffer -p [n or name…] | Pastes into the current folder: the items given by number or name, or the whole buffer with no argument. A name already taken gives a “name (1)” copy: nothing is ever replaced from the command line. |
buffer -h | Help. |
The command answers in the terminal (“2 item(s) copied to the buffer (1.2 MiB)”) and returns an exit code: 0 when everything went well, 1 otherwise (path not found, unknown item). Buffering that takes more than 20 seconds continues in the background; follow it in the Buffer button.
- Where it works: SSH sessions to a server whose shell is bash, zsh or sh (Linux, macOS, BSD…), and the other terminals in the table below. On a server, the function is installed only once HexaConnect has checked that shell, through a separate, invisible channel: a router or a switch receives nothing in its terminal.
- Nothing written on the server: the function is defined in the shell opened by HexaConnect, together with the prompt, and goes away with it. It does not appear in the history. After
sudo su -, “Reapply prompt” (tab menu) defines it again in the new shell. - Safety: the command talks to HexaConnect through an invisible sequence specific to each session. A booby-trapped file shown on screen (by
cat, for example) therefore cannot trigger anything.
By terminal
| Terminal | buffer command | Click to paste |
|---|---|---|
| SSH (bash, zsh, sh) | Yes | Shell's current folder |
| Local Git Bash, MSYS2, Cygwin, WSL terminal | Yes. Files of this computer, all drives; WSL paths through \\wsl.localhost. | Shell's current folder |
| Local PowerShell terminal (5.1 and 7) | Yes, with the same options; wildcards resolved by PowerShell. The function is passed at launch: nothing in the history. | Current folder |
| Command Prompt (cmd) | No (cmd has no functions) | Current folder |
| Remote PowerShell (WinRM) | Yes, in the remote session. Files go through a second connection opened with the session, using the password entered (neither kept nor asked again). | Remote session's current folder |
| Mosh | Yes. Mosh only sends the screen image: the startup SSH connection stays open as a side channel, and for files. If the network changes, reopen the session to get the files back. | Shell's current folder |
| SFTP only, FTP / FTPS, S3 | No terminal: Files view menus | Folder shown in the tab |
| Telnet, RDP, VNC | No | No (no file channel) |
The Buffer button
- Next to the Security button, it shows the number of items. It turns orange when an item needs your attention (failure, source kept).
- On hover (or click), the list opens: name, size, source session, age, and the “cut”, “in progress”, “failed” or “source kept” marks. The header says where a click will paste.
- Clicking an item pastes it into the session in front, in its shell's current folder. If the Files view is shown, it goes to the remote folder shown. With no known folder, it goes to the home folder. If the name already exists, HexaConnect asks what to do: keep both (the default), skip or replace.
- Dragging an item from the list to File Explorer, the desktop or an app drops its local copy there. A cut item stays in the buffer: dragging never deletes the source.
- An item's “…” menu: paste, delete the source now or keep it (cut item), open the local copy, copy the original path, remove from the buffer. At the bottom of the list, “Clear” removes every item without touching the sources.
From the Files view and the SFTP panel
The right-click menu of a remote file or folder offers “Copy to the buffer”, “Cut to the buffer” and “Paste from the buffer”, into the folder shown. This works for SFTP, FTP / FTPS and S3.
Cutting safely
- The source of a cut item is deleted only after a successful paste, and only if it has not changed since it was buffered (same date, same size).
- A cut symbolic link is deleted on its own, never what it points to.
- If the source session is closed, or the source changed in the meantime, the item is pasted but the source stays; it is marked “source kept”. Reopen the session and choose “Delete the source now”, or “Keep the source”.
Retention and settings
- The buffer is kept from one launch to the next, on this computer only (HexaConnect data folder). Items older than the retention period are removed at the next launch.
- Settings: the buffer command in SSH sessions (on by default; applies to sessions opened afterwards), retention (1, 7 or 30 days, or no limit; 7 by default), maximum size of an item (100 MB to 10 GB; 2 GB by default). The Buffer button stays usable even with the command turned off.
- Not supported: Telnet and remote desktop (RDP, VNC), which have no file channel.
Plans
Required plan: Discovery. SFTP, FTP / FTPS and S3, the Files view and the file buffer are complete in the free plan (each file connection counts toward the limit of 5 sessions open at the same time). An Enterprise policy can refuse cleartext FTP.