SFTP browser
ZestSSH has a built-in SFTP file browser. You can browse folders on a server, upload, download, rename, delete, change permissions and edit files, all over the same encrypted SSH connection as your session. On a phone it is a single list made for touch. On a computer it is a dock in the session’s tab, showing the host’s files, with your computer’s files beside them when you want two panes. When the server refuses a rename, move, new folder, delete, upload or download because your account lacks permission, you can usually do it again as root with Retry with sudo.
SFTP works for SSH hosts, and is all there is of a host saved as SFTP only: opening one goes straight to its files, the whole tab on a computer and the file browser on a phone, with no terminal. In a team, a vault can turn SFTP off for its hosts; opening SFTP on such a host says SFTP isn’t allowed in this host’s vault.
A host saved as FTPS (FTP over TLS) opens its files in the two-pane browser, on a phone too, over FTP with TLS instead of SSH.
Opening SFTP
Section titled “Opening SFTP”On a phone:
- In a session, tap SFTP in the terminal’s toolbar.
- Or long-press the host on the Hosts tab, then tap More and Host actions, and tap Files. If the host has no session yet, ZestSSH connects first and opens its files once the session is up.
On a computer (Windows, macOS, Linux):
- In a session, click SFTP in the session header. Click it again to close the dock.
- Press Ctrl+Shift+S. On a Mac the menu bar also has Cmd+Shift+S. The shortcut (Toggle SFTP panel) can be changed in Settings > Keyboard and mouse, under Keyboard shortcuts.
- Right-click a tab and choose Open in SFTP.
- On the Hosts page, click a host and click SFTP in its panel. If the host has no session open, ZestSSH connects and opens SFTP when the session is ready.
SFTP starts in your home folder on the server.
On a phone
Section titled “On a phone”Getting around
Section titled “Getting around”- Breadcrumb bar: the current path as tappable segments at the top of the list. Tap a segment to jump to that folder.
- Parent directory: the up arrow in the top bar goes one level up.
- Go to path: in the menu (three dots), type a path and tap Go.
- Remembered folder: the browser opens at home, then moves to the last folder you used on that host, if it still exists (or the nearest folder above it that does).
The file list
Section titled “The file list”Each row shows an icon (folders, code, config, images, archives, key files and logs each have their own look), the name, and for a file its size, permissions and last change. A folder shows its permissions and last change. The footer counts the folders and files in the current folder. Pull down to refresh.
File times follow the Time format setting (12-hour or 24-hour). See Settings for SFTP.
Sorting
Section titled “Sorting”Tap Sort in the top bar and pick Name, Size, Date modified or Type. Pick the same one again to reverse the order. Folders always come before files.
Hidden files
Section titled “Hidden files”In the menu, Show hidden files or Hide hidden files shows or hides files whose names start with .. This changes the same setting a computer uses (Settings > Files > Hidden files in the SFTP browser). By default, dotfiles such as .ssh and .bashrc are shown.
File and folder actions
Section titled “File and folder actions”Tap a folder to open it. Tap a file, or tap More actions (the three dots) on any file or folder, to see its actions:
- Edit in editor (files): opens the file in ZestSSH’s file editor. Saving writes it back to the same path on the server. Files over 4 MB are refused with a note. A file that is not UTF-8 text still opens: see File editor.
- Download (files): on Android, the file goes to the Download folder (Android 11 and later) or to the app’s own folder on the phone’s storage (Android 8 to 10, where the Download folder needs a permission ZestSSH does not ask for). A progress bar shows the transfer.
- Download & share (files): downloads the file and opens the system share sheet, so you can send it to another app or, on an iPhone or iPad, save it to Files.
- Copy path: copies the full path on the server.
- Rename: enter a new name.
- Properties: name, path, type, size, permissions and last change.
- Delete: asks first, then deletes the file, or a folder with everything inside it.
If a file of the same name is already on your phone when you download, ZestSSH asks whether to replace it, keep both, replace it only if the server copy is newer, or skip it. Two files of one download that would get one name on the phone (Notes.txt and notes.txt, say) are both kept: the second gets a name such as notes (1).txt. Two files of one upload with the same name are kept the same way.
Uploading
Section titled “Uploading”Tap the upload button (bottom right) to pick one or more files with the system file picker. They go to the current folder. The file is streamed from disk, so a large file does not fill the phone’s memory. If a file of that name is already on the server, you are asked what to do, with a choice to apply your answer to the rest.
New folder
Section titled “New folder”In the menu, tap New folder, enter a name and tap Create.
Selecting several items
Section titled “Selecting several items”Long-press a row (or pick Select files in the menu) to start selecting. Checkboxes appear, and the top bar shows how many are selected:
- Select all files selects every file in the folder (not folders). Tap it again to clear the selection.
- Download selected downloads the selected files one after another.
- Delete selected deletes the selected files and folders after asking.
Tap the X to stop selecting.
One transfer at a time
Section titled “One transfer at a time”The phone’s browser runs one transfer at a time, shown in a bar above the list with a cancel button. Starting another while one runs says A transfer is already in progress. Leaving the browser during a transfer asks first (Keep transferring or Cancel).
Deleting with Undo
Section titled “Deleting with Undo”If Delete hold is on (Settings > Files), a delete on the server waits for the seconds you chose. The rows go from the list at once, and a notice says Deleting in 10s (for example) with Undo. With Delete hold off (the default), the delete is sent as soon as you confirm.
On a computer: the SFTP dock
Section titled “On a computer: the SFTP dock”On a computer, SFTP opens as a dock inside the session’s tab, at the bottom or on the right. The dock’s header names the host and has Move to the right (or Move to the bottom) and Close SFTP. Drag the dock’s edge to resize it. Its side and size are remembered on this computer and are not synced. Moving the dock never restarts a transfer. When the window is too narrow for SFTP on the right, the dock stays at the bottom and the button says so.
From 4.2 the header also has Use the whole pane: the files take the whole pane and the terminal waits behind them, its session running on, until Show the terminal puts the two side by side again. On a tablet in the computer layout the dock opens that way, and beside the terminal it sits on the right, where the terminal keeps its height above the on-screen keyboard. Both choices are remembered on the device.
The terminal always keeps room: a dock at the bottom leaves it at least a few lines and its row of keys. Where the pane is too low for that, the dock shows on the right, and where neither side has room it takes the whole pane, with Show the terminal saying why it cannot be shown beside it.
A tab has one SFTP dock. Opening SFTP for another session in the same tab replaces it.
The header also has Go to the terminal’s folder and Follow the terminal, which open the folder the session’s terminal is in, once or as it moves. The shell has to report its folder; see Go to the terminal’s folder.
One pane, or two
Section titled “One pane, or two”The dock opens with two panes side by side: the locations rail and two panes, your computer (or another host) beside this one, to drag between. That layout is described below.
To see the host’s files alone, turn off Two panes side by side in the menu at the right of the host pane’s toolbar (View options). The one pane has one row with Up, Refresh, the path (with its search and bookmark), Upload, New folder and More, then the list with sizes and dates, and Activity under it. More holds Back, Forward, Download and Two panes side by side. Upload sends files you pick in the system’s dialog to the folder shown; Download puts the selection in a folder you pick. Dragging files onto the list or out of it works as before. The choice is kept on this computer.
When the session’s connection drops
Section titled “When the session’s connection drops”The dock shares the tab’s SSH connection. When it drops, the dock says so (“web-01 is disconnected”, and “This panel shares the tab’s SSH connection, which dropped at 09:41.”), with:
- Reconnect, which connects the session again. While the session already tries again by itself, the dock says which try.
- Open SFTP on its own: the host’s files on a connection of their own, in a new tab.
- Copy details, with every address taken out.
Once the connection is back, the dock shows the same folder again. The host’s name in the dock’s header says the connection’s state in words on hover and to a screen reader (Connected, Disconnected, Reconnecting).
Two panes: the layout
Section titled “Two panes: the layout”- Locations rail (left, can be collapsed): one group for each pane. A group’s header names the pane’s source (your computer or a host, with a status dot and the latency for a host). Click the header to choose what the pane shows. Under it are your bookmarks for that source and, for your computer, its drives with their free space. A team’s host also lists the folders its team keeps, under Shared with the team (see Shared folder bookmarks).
- Two panes: by default the left pane shows your computer’s files and the right pane the host. Drag the divider between them to resize.
- Activity panel (bottom): every transfer, folder sync, permission change and delete, with progress, speed and status.
Your computer is named as its system names it: This PC on Windows, This Mac on a Mac, This computer on Linux.
On Windows, a local pane’s last column is Attributes instead of permissions: a small badge for each Windows attribute that is set (R read-only, H hidden, S system). Windows has no Unix permissions, so no rwx string is shown there.
A pane’s toolbar
Section titled “A pane’s toolbar”Each pane has Back, Forward, Up and Refresh, a New folder button, and a transfer button: Upload on a local pane, Download on a remote pane. The transfer button sends the selected items to the folder open in the other pane.
The menu at the right of the toolbar (View options) has Zoom in and Zoom out for the list’s text size, and the hidden-files choice: Hide system files only, Hide hidden and system or Show all files. This is the same setting as in Settings.
On the right pane, the red power button closes SFTP. The SSH session and its terminal stay open.
Path bar
Section titled “Path bar”- The breadcrumb path has clickable segments. Double-click the path to type one. From 4.3 it shows as many folders as the pane’s width holds: where they do not all fit, the root and the folders nearest the current one, with the rest behind …. The current folder’s name is shortened only after its parents have gone behind ….
- Search (Ctrl+F) opens a filter for the current folder. On a remote pane, press Enter to search the names of everything under the current folder, and pick a result to go to it.
- The bookmark button adds the current folder to the pane’s group in the rail, or removes it (Bookmark this folder, Remove bookmark). Right-click it for more bookmark actions. On a team’s host, a member who may edit the host also finds Add bookmark for the team there, which bookmarks the folder for everyone who can see the host: see Shared folder bookmarks.
The file list
Section titled “The file list”- Columns: Name, Size, Perms (Attributes in a Windows local pane) and Modified. Click a column header to sort by it; click again to reverse.
- Selecting: click a row to select it, Ctrl+click to add or remove one, Shift+click to select a range.
- Keys: Delete deletes the selection, Enter opens, F2 renames, Backspace or Alt+Left goes up a folder, Ctrl+A selects all and Ctrl+F searches. On a Mac these are the Control key.
- Footer: the item count, how many items the hidden-files setting hides in this folder (click it to show them for now), the selection, and the free space where the system reports it. With folders in the selection, the size shown is labelled as the selected files’ alone (for example “2 folders and 1 file selected (files: 333 B)”), because a folder’s size is only known once the transfer dialog walks it and states the real total.
Opening files
Section titled “Opening files”Double-click a folder to open it, or a link to follow it. Double-click a file to open it in the file editor, as a tab that names its host; saving writes it back. This works in a pane on a server and in this computer’s pane. Images (PNG, JPEG, GIF, WebP, BMP, up to 32 MB) open in a preview instead. Files over 4 MB and files that look binary are refused with a note. A file that is not UTF-8 text opens anyway: a UTF-8 byte order mark opens it as UTF-8 with BOM, and any other file opens as Windows-1252 with the notice This file is not UTF-8 and Pick an encoding. A UTF-16 file usually looks binary to this check, so it is refused.
From 4.3, with two files or more selected, Open 3 in editor (in the right-click menu and the footer), or Enter, opens each in a tab of its own. Folders in the selection are skipped (“Open 3 in editor (folders skipped)”). Up to 20 open at once; more than that says so and opens nothing.
Right-click menus
Section titled “Right-click menus”Right-click a file or folder for:
- Open in editor (a file), Open (a folder) or Follow link (a link).
- Follow (live tail): on a remote file, shows its last 200 lines and then each new line as it is written, like
tail -f. Closing the view stops it on the server. The server needstail. - Open terminal here: on a remote folder, changes a terminal on that host to the folder, or opens a new session there if none is open. A folder name is the server’s to choose, so one with control characters in it is refused: “This name holds control characters. Typed into a terminal they act as keys and can run a command, so nothing was typed.” A name with characters a shell could read as part of a command is not put into one either: “This name holds characters a server’s shell could read as part of a command (a quote, a backslash, &, ;, $ or the like), so it was not put into one.”
- Rename…, New folder…, Permissions… (not in a Windows local pane, where it could change nothing), Copy path and Delete.
Right-click empty space in a pane for New folder…, New file…, Refresh, Copy current path, Open terminal here (remote panes) and, in a local pane, Sync folder to server (see Folder sync).
Permissions… opens a grid of Read, Write and Execute for Owner, Group and Others, with the octal value beside it (for example 755). For a folder you can tick Apply to enclosed items. Click Apply.
Transferring between panes
Section titled “Transferring between panes”- Drag and drop: drag files or folders from one pane to the other. The pane under the pointer is outlined when you can drop there. See Drag and drop.
- Upload or Download in the toolbar sends the selection to the other pane’s folder.
- Moving within a pane: drag items onto a folder in the same pane to move them there. On a host this is a rename, so it is instant, and the notice offers Undo. Items the server refused get a separate notice with Retry with sudo (see Retry with sudo).
Before a folder or several items are transferred, a dialog shows what will be sent, so you can untick parts of it. Files already identical on the other side are skipped, and you answer once for the files that differ.
Copying between two servers (server to server)
Section titled “Copying between two servers (server to server)”The two panes do not have to be one local and one remote. Click a rail group’s header to pick its source: your computer or any saved host. A host with a live SFTP session switches at once; another host connects when you pick it. Point one pane at the first server and the other at the second, then drag files or folders across, or select them and click the pane’s Download button. The confirmation for folders and several files reads Copy, and the usual preview and overwrite questions apply.
What happens to the bytes: there is no direct server-to-server link. For each file, ZestSSH downloads it from the source host to a temporary file on your computer, uploads that file to the destination, then deletes the temporary file; the progress bar shows the download as the first half and the upload as the second. Copying between two folders on the same server through two panes works the same way (a download and an upload, not a copy on the server). If the server refuses such a copy for permission and both panes use the same connection, Retry with sudo does it as a copy on the server, as root (cp -p for a file, cp -rp for a folder). Both hosts must be reachable from your computer, the data crosses your connection twice, the temporary folder needs room for the files in flight (up to three at once), and the checksum check after a transfer is skipped for server-to-server copies. For a large tree between two servers, scp or rsync in a terminal on one of them is faster.
“Not readable” in the overwrite dialog
Section titled ““Not readable” in the overwrite dialog”When a transfer would overwrite a file that already exists, the dialog (Replace “name”?) shows the size and last change of both files. If the server side reads Not readable instead, ZestSSH asked the server for that file’s details and got neither a size nor a time back. That is a condition on the server, not a problem with your local file: usually the user you connected as cannot read the file or its folder, or the server does not return file details (some locked-down servers leave them out). The file list shows the same words for an entry whose permissions and date could not be read, and a link whose target cannot be read says target not readable.
Because ZestSSH cannot see what it would overwrite, the dialog changes: Skip becomes the main button, Replace and Keep both stay as other choices, and in a batch Replace if newer cannot be used because it needs both dates (its note says so). To fix it, check the file’s owner and permissions on the server (ls -l, then chmod or chown as the right user), or connect as a user that can read it, and run the transfer again. If the server then refuses an upload, a download or a copy on the same connection for permission, the notice offers Retry with sudo (not between two servers).
Activity panel
Section titled “Activity panel”The Activity panel at the bottom of the dock lists every transfer and file operation:
- File name and direction (upload or download).
- One row per drop: dragging a folder, or several files and folders at once, makes one row you can expand, with the total progress. A drop of several items names what was dragged next to its count, for example “site, assets +1 · 67 / 70 files”, so two batches running at once can be told apart.
- Progress with bytes, speed and time left.
- Status: Pending…, Transferring, Done, Failed, Cancelled or On hold. A checked transfer shows Verified, or Checksum mismatch if the two copies differ.
- Actions: Cancel transfer (the red stop square) for one in progress, Retry for a failed one, Remove from list (the grey x) for a finished one, and Clear completed for every done and canceled row. The stop square halts work in flight; the x only tidies the list.
- Failures: a failed row says why in the app’s language, with Copy details. Files the server refused for permission also get a notice with Retry with sudo, except between two servers.
- Held deletes: with Delete hold on, a delete on the server waits in the panel for the seconds you chose, with Undo and Delete now, so a mis-click costs nothing. Folder Sync deletions use the same hold.
- Local deletes go to the Recycle Bin or Trash: a delete in a local pane goes to the Recycle Bin (Windows) or the Trash (macOS, and Linux through
gio trash). When the system cannot take something there (a network drive, for example), ZestSSH says why and asks before deleting it permanently (Delete permanently); nothing is deleted permanently without that question.
After an upload or a download of a file between 4 MB and 256 MB, ZestSSH compares a SHA-256 checksum of both copies (sha256sum or shasum on the server). When the server has neither tool, the transfer is left unchecked.
When the connection drops
Section titled “When the connection drops”A transfer under way when its connection drops ends and says that the connection to the server was lost; the file it was replacing, on your computer or on the server, is left as it was. A pane on a host that dropped says This host dropped. Reconnect to keep browsing, or switch to another source. with Reconnect. When the session connects again, the pane picks up the new connection by itself.
Remembers the last folder
Section titled “Remembers the last folder”Each pane remembers where it was. When the app restarts with Auto-restore previous sessions on, or when you launch a saved workspace, every SFTP pane comes back to the folder it was in, not to the home directory; three panes on one host in three folders come back to three folders. That memory is per pane and per device, and it is never synced.
Separately, each host remembers the last folder any pane settled in on it (the host default), so a new SFTP pane on that host starts there. The host default is saved with the host, so it follows you to your other devices through sync, and a phone’s browser uses it too. When a pane opens, the order is: its own restored folder, then the host default, then home.
The pane opens at home at once and finds the remembered folder in the background. If that folder is gone, the pane walks up to the nearest folder that still exists (at most four levels) and says so in one line under the path bar; if it exists but cannot be listed, or nothing above it works either, the line says that instead. The line goes away on your next move. A folder remembered under a different username is only a suggestion: the pane tries it and falls back quietly.
To clear a host’s memory, right-click the host on the Hosts page and choose Forget last folder (also in the host editor). That clears the host default everywhere it synced, this device’s pane memory for the host, and the counters behind the pin suggestion.
When you open the same folder on a host several times, the pane offers once to pin it (Pin it or Not now); declining stops the offer for that folder.
Recording mode masks the path bar, the breadcrumb and these notices like any other identifier. The terminal’s working folder is not remembered.
When the server says Permission denied: Retry with sudo
Section titled “When the server says Permission denied: Retry with sudo”On a computer (Windows, macOS, Linux) and on a phone or tablet (iOS, Android), many actions the server refuses because your account lacks permission (the ones listed below) can be done again as root, with sudo. You type the sudo password each time, and ZestSSH never keeps it.
The notice
Section titled “The notice”Retry with sudo is offered only when the server answers “Permission denied”. Other failures (no such file, a full disk, a lost connection) show the usual error and no sudo offer.
The notice says Not allowed: you don’t have permission for /etc/nginx/sites-available/app.conf. for one item, or Not allowed: you don’t have permission for 3 items. for several refused together. It has Copy details and a Retry with sudo button.
- On a computer, the notice goes to the notification center as an error and stays until you close it.
- On a phone, it is a card at the top of the screen, for 12 seconds when it has Retry with sudo (shorter without it). A newer card replaces it.
What it covers on a computer
Section titled “What it covers on a computer”In a pane on a server:
- Rename…: the dialog closes and the notice offers Retry with sudo.
- New folder…, or the toolbar’s New folder: the dialog closes as soon as the name is accepted, and the folder is made as an entry in Activity. If the server refuses it, that entry fails and the notice appears.
- Delete, once the delete hold (if you use one) has run. Not when you chose Undo or the connection was lost.
- Moving items by dragging them onto a folder in the same pane. When some moved and others were refused, the moved ones get the usual notice with Undo, and the refused ones a separate notice with Retry with sudo. Undoing a move never offers sudo.
- Transfers between panes: an upload, a download, or a copy between two panes on the same connection. All files of one transfer that the server refused are offered together, under one Retry with sudo. For one file, the notice names where it was going: for a download, that is the path on this computer.
- A folder the server would not create: when a folder transfer stops because the server refused to make the destination folder, Retry with sudo puts the whole folder there as root. For an upload, it makes the folder and each folder inside it, then sends each file. Items you unticked stay out, and links inside the folder are left out. For a copy within one server, it copies the folder on the server.
There is no Retry with sudo:
- in a pane showing this computer’s files (a refused rename there shows its error in the dialog);
- between two servers, or two panes on different connections (even to the same server);
- for a folder download whose folder could not be made on this computer, or for a folder copied between two servers. (Files inside a folder download that the server refused to read are still offered Retry with sudo, together.)
What it covers on a phone or tablet
Section titled “What it covers on a phone or tablet”- Download (one file) and Download selected (the refused file and those not yet downloaded).
- An upload with the upload button (the refused file and those not yet uploaded).
- Delete and Delete selected, when the delete ends while the file browser is still open. When some items went and others were refused, the notice says how many went (Deleted 2 of 5 items, for example) with Retry with sudo for the rest. If you left the browser before the delete ended (after a delete hold), the failure shows as a plain error, with no sudo offer.
- Rename and New folder: the dialog closes and the notice offers Retry with sudo.
Download & share does not offer it.
The sudo dialog
Section titled “The sudo dialog”Retry with sudo opens a dialog titled Retry with sudo?, with the server’s name under the title. It says “ZestSSH runs this on web-01 as root, with sudo. Your password goes to sudo only, never on a command line.” Below that it lists each command that will run, one per line, for example:
sudo mv /etc/nginx/sites-available/app.conf /etc/nginx/sites-available/app.conf.bak- Type the password in Password for sudo. Its note says “Used for this only. ZestSSH never stores or syncs it, so you type it each time.”
- Choose Run with sudo, or Cancel. With the field empty, the dialog says Type the password.
While the commands run, Run with sudo and Cancel are greyed out and the dialog cannot be closed. Recording mode masks the server’s name in the dialog.
Which password: the password of the account you signed in to the server with (deploy, say), not the root password, unless the server is set up otherwise. If you sign in with a key and do not know that password, ask whoever looks after the server.
One password per batch, never kept
Section titled “One password per batch, never kept”- Everything that failed together runs with one password, in order.
- If sudo refuses (a wrong password, for example), the dialog stays open and says why. What was already done is not done again, and the rest runs with the password you type next.
- If you choose Cancel at that point, what was done stays done, and no result notice is shown. If anything was done, the folder is listed again (not after a download on a phone).
- If one command runs as root and still fails, the others still run.
- The password is cleared from the field as soon as you press Run with sudo, and it is gone when the dialog closes. It is never stored or synced, never put on a command line, and never written to the app’s log.
- sudo asks for the password every time, so an earlier sudo on the server never lets a wrong password through.
The result
Section titled “The result”- Done with sudo: 3 items. when everything worked.
- Done with sudo for 2 of 3. The rest did not work: Copy details says why. when not everything worked (also when none of several did, as 0 of 3).
- It did not work with sudo either. The host said: … when the only command failed as root.
The folder is listed again once anything was done (except after a download on a phone, where nothing on the server changed).
What runs on the server
Section titled “What runs on the server”| Action | What runs as root |
|---|---|
| Rename or move | mv, never over something already there: if the destination exists, nothing is done and the server’s answer (“File exists”) is shown |
| New folder | mkdir |
| Delete | rm, or rm -r for a folder |
| Download | cat, into a .zestpart file beside the destination that takes its real name once every byte has come. If it fails, the partial file is removed |
| Upload | The file goes first to a private temporary file in /tmp that only your account can read, then is copied into place, and the temporary file is removed |
| Copy on one server | cp -p for a file, cp -rp for a folder (never over a folder already there) |
After an upload as root, a file that was already there keeps its owner and mode. A new file is owned by root, with mode 644. An upload onto a folder is refused.
On a phone, a download with sudo says Done with sudo: 1 item. instead of where the file was saved. The file lands where a normal download would have put it.
When there is no Retry with sudo button
Section titled “When there is no Retry with sudo button”The notice still says Not allowed, but has no button, when a path in the action:
- holds anything other than letters of any language, digits, the plain space, emoji and
. _ / + @ , : = ~ # ( ) [ ] -: for example a quote, a backslash,&,|,;,<,>,^,%,!,$, a backtick,*or?,{or}, a currency sign, a dash other than the plain hyphen, a non-breaking space, a tab or another control character; - starts with a hyphen;
- is a Windows drive path (
/C:/...), as a Windows OpenSSH server shows its drives. In practice, such a server never offers Retry with sudo.
Letters of any language, digits, the plain space, emoji and . _ / + @ , : = ~ # ( ) [ ] - are fine.
For Rename, and for New folder on a phone, no notice appears in these cases: the usual error stays in the dialog.
Errors from sudo
Section titled “Errors from sudo”These show in the dialog, with their code. In each case nothing was changed on the server, except the last, where the command may or may not have done its work.
| Message | Cause | What to do |
|---|---|---|
| sudo did not take that password. Type it again. (ZS-1601) | Wrong password. A server whose sudo asks for something besides the password (a one-time code) answers the same way, and so does a password with a line break in it | Type the password of the account you signed in with |
| This account may not use sudo here. The host said: … (ZS-1602) | The account is not in the sudoers file, or may run only some commands | Sign in as an account that may use sudo, or ask the server’s admin. A rule that allows only some commands must allow sh (rename, move, folder copy, upload), and cp, rm, mkdir and cat |
| sudo could not be run on web-01: it has no sudo, or allows SFTP only. (ZS-1603) | The server has no sudo, or runs no commands (for example ForceCommand internal-sftp). doas is not used |
Ask the admin to install sudo or allow a shell, or fix the file’s owner or permissions |
| sudo on web-01 runs only from a terminal. Run the command in a terminal to the host instead. (ZS-1604) | sudo is set to requiretty. ZestSSH runs sudo without a terminal, so the password never shows on a screen |
Run the command in a terminal to the server, or ask the admin to drop requiretty for your account (Defaults:deploy !requiretty) |
| The host did not answer, so ZestSSH stopped waiting. Refresh to see what was done. (ZS-1605) | Nothing came back for 2 minutes (10 minutes for copying or deleting a whole folder) | Refresh the folder to see what is there now, then try again |
No team, vault or Crate rule turns Retry with sudo on or off. The only checks are on the server (sudoers, requiretty, whether it runs commands). The file editor’s Save as root uses the same password dialog and the same errors. See also Common errors.
The file editor
Section titled “The file editor”Files open in ZestSSH’s file editor, on a phone, a tablet and a computer. It holds several files as tabs, keeps a file’s encoding and line endings, and can save a file your account cannot write with Save as root. If the file changed on the server since you opened it, saving asks first (File changed on the server). See File editor for tabs, find and replace, keys and the rest.
Settings for SFTP
Section titled “Settings for SFTP”On a computer and on a phone, these are in Settings > Files.
- Time format: how file times show in SFTP, 24-hour (14:30) (the default) or 12-hour (2:30 PM).
- Hidden files in the SFTP browser: what both panes hide by default: System files only (the default), Hidden and system, or None.
- Delete hold: how long a delete on a server waits, with Undo, before it is sent: Off (the default), 5, 10 or 30 seconds. Local deletes go to the Recycle Bin or Trash.
Special files and replaced files
Section titled “Special files and replaced files”- Files under
/procand/sys, which report no size or the wrong one, open and download in full. A log that grows while it downloads comes down as far as it went when the download began. - A device, a pipe or a socket is refused before it is opened, with a note saying what it is.
- A file that an upload or an editor save replaces keeps its permissions, and a link to it stays a link.
- On macOS and Linux, a file that only its owner may read on the server (a private key at 600, for example) stays readable only by you after a download.
Languages and errors
Section titled “Languages and errors”The SFTP screens are in all of the app’s languages. When something fails, the message says why in your language, and Copy details copies a report with names and secrets taken out.
Security
Section titled “Security”Before a download is written to your device, ZestSSH keeps only the last part of the file name the server sent, removes null bytes, and refuses . and .. as names, so a malicious server cannot write a file outside the folder you download to. A local path with a .. segment is refused.
Related
Section titled “Related”- File editor: edit a file from SFTP in tabs, and save it as root.
- Resume transfers: pick up interrupted downloads where they left off.
- Parallel transfers: how several files move at once.
- Drag and drop: drag-and-drop details and platform notes.
- Folder sync: push a local folder to a server and send only what changed.
- Shared folder bookmarks: folders a team keeps for one of its hosts.