Product10/17/2026·6 min read

SFTP File Manager on iPhone: Transfer, Resume and Verify

How SFTP compares with SCP, FTPS, SMB and sshfs on iPhone, how to resume a failed copy, how to verify it with a checksum, and where the Files app fits in.

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.

ProtocolRuns overDefined inRestarting a partial copyApple documents it for the Files app
SFTPThe SSH connection, as a subsystemIETF draft filexfer-02, version 3reget and reput in OpenSSH sftpNo
SCPSSH; uses the SFTP protocol since OpenSSH 9.0OpenSSH scp(1)No option for itNo
FTPSFTP control and data connections, each wrapped in TLSRFC 4217REST at a byte offset (RFC 3659), if the server supports itNo
SMB 2 and 3TCP port 445Microsoft's SMB specificationsLeft to the clientYes, via Connect to Server
sshfsA FUSE file system on top of SFTPlibfuse/sshfsWhatever the copying tool doesNo

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:

  1. Leave the partial file where it is; deleting it forces a full restart.
  2. Confirm the source has not changed since the first attempt, by size and modification time.
  3. Resume with reget or reput, or switch to rsync over SSH, where -P stands for --partial --progress and --append-verify includes all of the data in its checksum verification, per the rsync manual.
  4. 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 -f asks the server to call fsync after 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

QuestionIf 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.

Frequently asked questions

What is the difference between SFTP and FTPS?
They are unrelated protocols. SFTP is a subsystem of SSH: one encrypted connection on the SSH port, authenticated with your SSH key or password. FTPS is classic FTP wrapped in TLS as described in RFC 4217, with a control connection plus separate data connections that each need protection, which is why firewalls and NAT handle it less gracefully.
Can I resume a failed SFTP transfer?
With OpenSSH's sftp client, yes: reget resumes a download and reput resumes an upload, equivalent to get -a and put -a. The manual warns that resumption assumes the partial copy matches the source, so if the file changed in between, start over. rsync over SSH with -P keeps partial files and shows progress, and checks each file it reconstructs.
How do I check that a file copied over SFTP is not corrupted?
Compare checksums computed on both machines, for example sha256sum on Linux, and use sha256sum -c to check a list of saved digests later. SFTP version 3 has no checksum operation of its own, so the protocol cannot do this for you. If you can only see one side, at least compare the exact byte count with the size the server reports.
Why can I log in over SSH but not open SFTP?
Because SFTP is a separate subsystem that sshd starts only if its configuration names one: the OpenSSH manual says that by default no subsystems are defined. Most distributions ship a Subsystem sftp line, but minimal images and hardened servers may not. A Mosh session cannot carry SFTP either, because the transfer needs the SSH connection Mosh hands off after login.

Products in this post

Keep reading