Compare SFTP vs. FTPS vs. SCP: learn how SSH and TLS protect file transfers, which option fits your workflow, and how to troubleshoot failures securely.
👉 Master your Security+ skills with Pluralsight here: Pluralsight
You’ll learn how SFTP, FTPS, and SCP use SSH or TLS to protect file transfers, how to choose the right option, and what to check when a transfer fails without weakening security.
Chapters: 0:00 Intro 0:12 What is SFTP, and why isn’t it just secure FTP? 1:01 What is FTPS, and why can login work when uploads fail? 1:59 Does the SCP command still use the SCP protocol? 2:45 How do you choose the right secure file transfer option? 3:49 Outro
Affiliate notice: Some links may earn a commission. Thanks for your support.
Key Takeaways
Choose SFTP for recurring transfers and file management. It uses one SSH connection, typically on port 22, and supports restricted upload folders without granting shell access.
Choose FTPS when an existing integration requires FTP over TLS. Confirm whether it uses explicit FTPS (usually port 21) or implicit FTPS (usually port 990), and require TLS on both control and data connections.
Use scp for quick copies to a known path.OpenSSH 9.0 and later use SFTP by default, so check server SFTP support if a script stops working after an upgrade.
Verify the server’s identity before sending sensitive files. Confirm unexpected SSH host-key changes with a trusted administrator, and never bypass FTPS certificate validation.
If FTPS login works but uploads or listings fail, check the separate data connection. Verify the active or passive mode, firewall access to the configured passive ports if applicable, and data-channel TLS settings.
👉 Put your cybersecurity knowledge into practice with Pluralsight: use guided labs and feedback to build skills, then use assessments and practice exams to focus your certification prep.
SFTP, FTPS, and SCP all let you transfer files over an encrypted connection, but they aren’t interchangeable. SFTP is a file management protocol that runs over SSH. FTPS is FTP protected by TLS. scp is a copy command that uses SFTP by default in modern OpenSSH.
The right choice depends on what the receiving server supports and what you need to do: manage files, connect to an FTP-based integration, or copy a file to a known path. Whichever option you choose, verify the server’s identity before sending sensitive data.
SFTP vs. FTPS vs. SCP at a glance
FAQ
Quick answers to the questions people usually ask about this topic.
Can SFTP use a port other than 22?
Yes. Port 22 is the default, but an administrator can configure SSH to listen on a different port. Use the port provided by the server administrator and verify the SSH host key as usual. A nonstandard port does not change the protocol or replace host key verification.
Is SFTP the same as FTP through an SSH tunnel?
No. SFTP is a separate protocol that carries file operations and data within an SSH connection. Tunneling FTP through SSH does not turn it into SFTP: FTP still uses separate control and data connections, and forwarding the control connection alone does not protect the data connection.
Is SCP faster than SFTP for large files?
Not necessarily. In OpenSSH 9.0 and later, scp uses SFTP by default, so the command name alone does not tell you which will be faster. Network bandwidth, latency, server load, and client settings all matter. If throughput is important, test both clients with a representative file on the network you actually use.
Can I resume an interrupted SFTP transfer instead of starting over?
Yes, if your client supports resuming. The OpenSSH SFTP client provides reget for downloads and reput for uploads. Resume only when the partial file came from the same, unchanged source; otherwise, restart the transfer to avoid ending up with a corrupted file.
How can I verify that the complete file arrived intact?
Check that the transfer reported success, then compare a SHA-256 checksum of the source file with one computed from the delivered file. A matching checksum confirms that the files match. If the recipient cannot compute the source checksum directly, share the expected value through a trusted channel.
How can I practice the security skills behind SFTP, FTPS, and SCP?
If you understand the protocol differences and want to apply the underlying security concepts, try the guided cybersecurity labs on Pluralsight. Use lab feedback and assessments to identify what to revisit, then use practice exams to focus your certification preparation.
Some links may earn a commission. Thanks for your support.
Watch in the video playerOpen the dedicated player for this course.
Option
How it protects transfers
Usual TCP port
Best fit
SFTP (SSH File Transfer Protocol)
Runs within one SSH connection for file operations and data
22
Recurring file exchanges, restricted drop-off folders, and interactive file management
FTPS (FTP over TLS)
Uses TLS for the FTP control connection and requires separate TLS protection for data connections
21 for explicit FTPS or 990 for implicit FTPS, plus separate data ports
Existing FTP-based integrations that require TLS
scp (Secure Copy command)
Uses SFTP over SSH by default in OpenSSH 9.0 and later; can use legacy SCP over SSH for compatibility
22
Copying a file or directory to or from a known path
Plain FTP does not encrypt credentials or files. Properly configured SSH or TLS protects them in transit, but encryption alone doesn’t tell you whether you’ve connected to the right server.
What is SFTP, and how is it different from FTPS?
SFTP is a separate protocol from FTP. It runs inside an SSH connection, so browsing directories, uploading files, and downloading files don’t require separate FTP-style data ports.
The client verifies the server’s SSH host key before the account authenticates. A host key identifies the server; a user key authenticates the account. If you use public-key authentication, the client proves it controls the private key without sending that private key to the server.
SFTP works well for recurring jobs such as a supplier uploading nightly inventory files. An administrator can restrict the supplier to an assigned directory and approved operations without granting shell access. For a manual transfer, an SFTP session also lets you browse the destination before uploading or downloading.
What is FTPS, and why can login work when uploads fail?
FTPS keeps the FTP workflow but adds TLS, the same security technology used by HTTPS. It comes in two modes:
Explicit FTPS usually starts on TCP port 21. The client requests TLS before sending login credentials. Configure the client to require TLS rather than falling back to cleartext.
Implicit FTPS usually starts on TCP port 990. TLS begins as soon as the control connection opens.
Explicit and implicit describe when TLS starts. Active and passive describe who opens the separate data connection. In passive mode, the client opens it to a port selected by the server. In active mode, the server connects back to the client.
A successful login only proves the control connection worked. Directory listings and file transfers use separate data connections, so they can time out even after you’ve logged in. They also need their own TLS protection: in explicit FTPS, PROT P requests a protected data connection. Don’t assume that an encrypted login guarantees an encrypted upload.
Does the scp command still use the SCP protocol?
Not by default in modern OpenSSH. Starting with OpenSSH 9.0, the scp command uses SFTP over SSH. The command name and basic copy syntax stayed the same; the protocol used underneath changed.
For example, scp report.csv analyst@files.example:/incoming/ copies a file to a known destination without opening an interactive file-management session. On modern OpenSSH, the server must support SFTP for that default behavior to work.
The scp manual documents uppercase -O for selecting the legacy SCP protocol when an older endpoint requires it. Legacy SCP relies on remote shell behavior, so scripts that depend on legacy wildcard or path handling may behave differently after an upgrade.
How to choose between SFTP, FTPS, and SCP
Start by confirming the protocol and mode with whoever manages the receiving endpoint. A client configured for SFTP won’t connect to an FTPS service, even though both provide encrypted file transfer.
Choose SFTP for recurring exchanges when both sides support it. It fits scheduled uploads, partner drop-off folders, and workflows that need directory browsing or file management.
Choose FTPS when a partner or existing integration requires FTP over TLS. Confirm whether the server expects explicit or implicit FTPS, whether to use passive mode, and how the data connection is protected.
Choose scp for a quick copy to or from a known path. If you need to inspect directories first or perform several file operations, an interactive SFTP session is a better fit.
Give each account only the access it needs. A partner that only needs to upload files doesn’t need a shell or permission to read unrelated files. Plan for what happens after delivery, too: transport encryption does not replace storage encryption, file permissions, or retention controls.
How to troubleshoot secure file transfers without weakening security
Build hands-on cybersecurity skills
If you understand the protocols but want more practice applying security concepts, Pluralsight offers guided labs and feedback. Use its assessments to spot gaps in your understanding and its practice exams to focus your certification prep.
Pause the transfer and compare the new fingerprint with a value from a trusted administrator. A rebuild or key rotation may explain the change, but don’t accept the new key until you’ve verified it.
The FTPS certificate doesn’t match
Confirm that you’re using the expected hostname and that the certificate matches it and chains to a trusted authority. Don’t bypass certificate validation.
FTPS login works, but listings or uploads time out
Check active or passive mode and, for passive mode, whether the firewall and any network address translation allow access to the server’s configured passive port range. If the data connection is reachable but rejected, check whether the client requests TLS protection for it.
scp stopped working after an upgrade
Check whether the client switched to SFTP by default. Confirm that the server supports the SFTP subsystem and that the script doesn’t rely on legacy wildcard or path handling.
Affiliate link — I may earn a commission at no additional cost to you.
Jay's Recommendation
Turn understanding into hands-on confidence
You've built the foundations. Pluralsight adds opportunities to practice in guided security labs, get feedback, and check your knowledge with assessments and practice exams, so your next step is more than another video.
đź› Put concepts to workBuild practical skills with guided security labs and feedback.
🎯Find your weak spotsUse assessments to focus on what needs more work.
📝Check your understandingUse practice exams to guide your certification preparation.
đź§Give study sessions directionOrganize further learning with curated paths and progress tracking.