An SFTP file manager on iPhone is an SSH client that opens the SFTP subsystem on the same connection, so you can browse, download, upload, rename and delete without typing shell commands. Whether it holds up depends on three things the app cannot settle on its own: whether the server enables the subsystem at all, what happens to a half-finished copy, and how you prove the file arrived intact. SFTP version 3, the version OpenSSH speaks, has no checksum request, so that last proof happens outside the protocol.
How do SFTP, SCP, FTPS, SMB and sshfs differ?
They differ in what they run over and in what a failed copy leaves you with.
| Protocol | Runs over | Defined in | Restarting a partial copy | Apple documents it for the Files app |
|---|---|---|---|---|
| SFTP | The SSH connection, as a subsystem | IETF draft filexfer-02, version 3 | reget and reput in OpenSSH sftp | No |
| SCP | SSH; uses the SFTP protocol since OpenSSH 9.0 | OpenSSH scp(1) | No option for it | No |
| FTPS | FTP control and data connections, each wrapped in TLS | RFC 4217 | REST at a byte offset (RFC 3659), if the server supports it | No |
| SMB 2 and 3 | TCP port 445 | Microsoft's SMB specifications | Left to the client | Yes, via Connect to Server |
| sshfs | A FUSE file system on top of SFTP | libfuse/sshfs | Whatever the copying tool does | No |
A few rows need a sentence. The scp manual notes that "since OpenSSH 9.0, scp has used the SFTP protocol for transfers by default," and that the legacy protocol, still available with -O, runs the remote user's shell to expand wildcards, which is why filenames containing quote characters need careful quoting. FTPS keeps FTP's separate data connections, and RFC 4217 acknowledges that NAT devices and firewalls "expect to be able to examine the content of the control connection." Microsoft documents that direct-hosted SMB uses TCP port 445. And sshfs "allows you to mount a remote filesystem using SFTP," but needs libfuse, and its README says it "does not have any active, regular contributors."
Why can a server accept SSH logins but refuse SFTP?
Because file transfer is optional in sshd. The sshd_config manual describes the Subsystem keyword, names sftp-server and the in-process internal-sftp as the two implementations, and states that "by default no subsystems are defined." Distribution packages usually ship a Subsystem sftp line; minimal container images and hand-written configs often do not. The client sees a working login and a refused file channel.
Two other server settings produce the same symptom. A ChrootDirectory works only if "all components of the pathname are root-owned directories" not writable by group or others, so a chrooted user often cannot write to the top of their own jail. And sftp-server -R runs in read-only mode: logins and listings succeed, every upload fails.
A Mosh session cannot carry SFTP at all. Mosh uses SSH only to log in and start mosh-server, then moves the terminal to UDP, so there is no SSH connection left to open a file channel on. Mosh's trade-offs are covered in keeping an SSH session alive on iPhone and iPad and in how YoloShell handles Mosh roaming.
How do you resume a transfer that failed halfway?
Resume only when you can vouch for the partial file. OpenSSH's sftp manual defines reget as "resume download" and reput as "resume upload," equivalent to get -a and put -a, and adds the caveat that matters: "resumption assumes that any partial copy of the local file matches the remote copy. If the remote file contents differ from the partial local copy then the resultant file is likely to be corrupt."
A safe sequence:
- Leave the partial file where it is; deleting it forces a full restart.
- Confirm the source has not changed since the first attempt, by size and modification time.
- Resume with
regetorreput, or switch to rsync over SSH, where-Pstands for--partial --progressand--append-verifyincludes all of the data in its checksum verification, per the rsync manual. - Verify the result with a checksum before you delete the source or hand the file on.
rsync is the stronger tool for large files because it "normally verifies that each transferred file was correctly reconstructed on the receiving side." Plain SFTP does not.
How do you prove the copy is complete?
Compare digests, not progress bars. The SFTP version 3 draft has no checksum request, and the extensions OpenSSH adds in its PROTOCOL file, such as posix-rename, statvfs, fsync and copy-data, include no hash either. Run sha256sum on both machines and compare; sha256sum -c checks a saved list of digests later.
Three weaker checks are still worth knowing:
- Byte count. A short file is the most common failure, and the size the server reports makes it visible.
- Write, then rename. Uploading to a temporary name in the same directory and renaming at the end means the final name only ever points at a complete file, so nothing reads a half-written copy by accident.
- fsync. OpenSSH's
put -fasks the server to callfsyncafter the transfer, so the data is on disk rather than only in the server's cache.
Where do the Files app and File Provider fit?
The Files app has its own server support, and it is not SFTP. Apple's iPhone guide describes Connect to Server, which takes a hostname or network address and connects as a guest or a registered user, and Apple announced the feature as support for SMB file servers.
For anything else, an app has to bring the server into Files itself. Apple's mechanism is the File Provider extension, "an extension other apps use to access files and folders managed by your app and synced with a remote storage." An SFTP app with such an extension appears as a location in Files; one without it exchanges files through the share sheet and the document picker. On the phone, File Provider plays the part sshfs plays on Linux and macOS: it is how remote files become part of the file system you browse.
Why do permissions and ownership surprise people?
The SFTP server process runs as the account you logged in with, so every file it creates belongs to that account and gets that account's default mask. A file uploaded as deploy into a web root can be unreadable by the web server's own user, even though the upload reported success.
The fixes live on the server. sftp-server -u "sets an explicit umask(2) to be applied to newly-created files and directories, instead of the user's default mask," and OpenSSH's sftp -p preserves modification times, access times and modes from the original files. Without -p, an upload takes the time of the upload, which can confuse build tools that compare timestamps.
What YoloShell's file browser does, and what it leaves out
YoloShell opens SFTP on the same SSH connection as the terminal, for SSH and Herdr tabs.
- Where it starts. It opens at the selected Herdr pane's working directory, at a directory you tapped in terminal output, or at
/, and falls back to/if the starting directory cannot be listed. Folders sort before files. - Downloads are checked by size. A file is fetched to a temporary location and handed to the share sheet. If the byte count does not match the size the server reported, the download fails instead of passing on a truncated file, and a failed download's partial file is deleted.
- Uploads are atomic. A file picked in the document picker is written under a temporary name in the same directory and renamed only when complete, so an interrupted upload never leaves a file that looks finished.
- Rename and delete happen on the server. Rename is a server-side move, and delete asks for confirmation first.
- Preview without a download step. Images, video, audio, PDFs and text open in a shared viewer; files over 64 MB are not opened in place and are offered for download instead.
- Failures say which failure. A server with no SFTP subsystem, a missing path, a refused path and a full disk each get their own message.
The limits are just as specific. The browser runs one transfer at a time and has no resume queue, so a failed copy starts again from zero. It checks size, not a checksum. It does not mount the server into the Files app. It is not offered on Mosh tabs, and it is part of the YoloShell Pro subscription. Sending a single file into a session is a separate free feature that works without the SFTP subsystem, described in running a coding agent from your phone.
A pre-flight check before moving a file that matters
| Question | If the answer is no |
|---|---|
Does sftp connect, not just ssh? | Add a Subsystem sftp line on the server |
| Can the login account write to the target directory? | Fix ownership or the umask before uploading |
| Is the file large enough that a restart would hurt? | Use rsync with -P from a shell instead |
Can you run sha256sum on both ends? | Compare exact byte counts at the very least |
| Will something read the file while it uploads? | Upload under a temporary name and rename |
The decision rule: use a phone file browser for files you can cheaply send again, such as logs, configs, screenshots and build artifacts. For a multi-gigabyte backup or anything you will delete at the source, start rsync on a machine with a keyboard and verify with a checksum before you trust the copy.