SFTP only
Some servers give files and nothing else: an account set up with ForceCommand internal-sftp, a backup or upload box, a hosting account for files. Save such a server as SFTP only and ZestSSH signs in to it as it signs in to any SSH host, asks for no terminal, and opens its files.
Availability
Section titled “Availability”| Platform | Status |
|---|---|
| Android | Full support |
| iOS | Full support |
| Windows | Full support |
| macOS | Full support |
| Linux | Full support |
Quick start
Section titled “Quick start”- Add a host (New host on a computer’s Hosts page, + on a phone’s Hosts tab).
- Under Protocol, choose SFTP. In lists it is called SFTP only (files, no terminal). The port stays the SSH port, 22 unless you change it; switching between SSH and SFTP keeps the port you typed.
- Type the Address and pick the Key (or saved password) it signs in with, as for SSH.
- Press Test full connection. It signs in, opens SFTP and lists the first folder: “Connected: TCP 3ms, full handshake 41ms. SFTP works (its first folder was listed), and this host gives no terminal.”
- Open the host. On a computer its tab shows the file browser full width, with no terminal under it, and the tab and its header say SFTP. On a phone the file browser opens; leaving it, the session’s screen says “This session is files only (SFTP): it has no terminal.” with Open its files.
What it keeps, and what it has none of
Section titled “What it keeps, and what it has none of”Everything SSH has for signing in stays: the address and port, the key or password and the host’s other accounts, jump hosts and network rules, the keep-alive, Compatibility mode and the host key check. Wake on LAN, groups, tags and the note stay too.
What belongs to a terminal is not shown in its editor: agent forwarding, the terminal theme, the startup command, the snippet run on connect, environment variables and port forwards. Where they would be, the editor says “This host is SFTP only: it gives no terminal.” On a computer its header has no tmux and no SFTP button: its files are its tab.
What runs on a host is not offered for it: Server monitor, Run on hosts, automation, running a snippet, Broadcast and Port forwarding. Where a list shows hosts for one of those (Broadcast to hosts, Run on hosts, Install a key, a snippet’s Run on… and default host, a workflow step’s host, a scheduled task’s host, a forward’s host, the monitor’s table), such a host is dimmed with the same reason and cannot be picked. A tab’s broadcast passes it over, and nothing is typed into it. Folder sync and every file action work as on any host.
A host saved as SSH whose server gives files only
Section titled “A host saved as SSH whose server gives files only”When a host you saved as SSH turns out to give files only, its session ends at once. OpenSSH’s server says why: “This service allows sftp connections only.” (and ends the session with the status 1). ZestSSH shows, in the session’s place, This host gives files only, the server’s own words, and two ways on:
- Open its files: this session is opened again, files only, in its place. The host stays as it is.
- Make this host SFTP only: the host is saved as SFTP only, so it opens to its files from now on, on every device it syncs to. In a team, only where its vault lets your account change the host; otherwise ZestSSH says it could not change it, and its files can still be opened.
A server that closes the terminal the moment it opens, before anything was typed, and says nothing of why, gets the same offer, worded with an if: “files-01 closed the terminal the moment it opened. If it allows SFTP only, its files can still be opened, and it can be made SFTP only so it opens that way from now on.” Reconnect stays under them.
Where a connection fails earlier, in the handshake, Compatibility mode is still the first thing suggested, as for any host.
Teams, setup files, imports and older versions
Section titled “Teams, setup files, imports and older versions”- In a vault, the type travels with the host, as every type does. Members on this version open it as SFTP only. A member on an older version sees an SSH host, and its server refuses the terminal, as it did before.
- A setup file may say
"protocol": "sftp"for a host (see Setup as code). An older version refuses such a file and says where: “crates[0].hosts[2].protocol: this is not one of et, mosh, ssh, telnet.” - Imports. SFTP sessions from MobaXterm and SecureCRT (SecureFX) come in as hosts that are SFTP only, and so does a CSV line whose protocol is
sftp. See Importing from other apps. - Older versions. An older version reads the type as SSH: the host is still there and nothing breaks, but editing the host there turns it back into SSH, and so can what that device syncs back. When that happens, this version says so where the host gives no terminal: “A device of yours on an older version of ZestSSH turned this host back into SSH. Update that device, or it will do it again.” Keep the devices that sync your hosts on this version or later.
How it works
Section titled “How it works”- The connection is an SSH connection like any other: TCP, key exchange, host key check, sign-in, through jump hosts and network rules where the host has them. Then ZestSSH asks for no terminal (
pty-req) and no shell; the file browser opens an SFTP channel on that connection. - Its terminal is never shown blank: where the session’s terminal would be, the server’s notice before sign-in (if it has one) and one dim line say it is files only.
- Recognising a refusal. A session asked for a shell is said to have met a server that gives files only when the server printed “This service allows sftp connections only.”, or when its shell ended within 3 seconds of opening, before anything was typed into it.
- A watched vault. Where a team watches a vault’s sessions, nothing beside a watched session’s terminal is reachable, files included, so such a host’s files cannot be opened: “This host’s sessions are watched by its team, and a watched session gives no access to the host’s files, so they cannot be opened here.”
If something goes wrong
Section titled “If something goes wrong”- “The host did not start SFTP.” The server signed you in but runs no SFTP: its
sshd_configneeds aSubsystem sftpline (orForceCommand internal-sftp). - The test signs in but SFTP fails. The same: the reason is in Copy details, with names and secrets taken out.
- It asks for a password every time. As for SSH: save the password with Save this password, or move to a key. See Keys.
Related
Section titled “Related”- SFTP
- Hosts and connecting
- SSH
- FTPS: files from a server that speaks FTP over TLS instead of SSH