SFTP stands for SSH File Transfer Protocol. It is a secure file transfer method that operates entirely over the SSH (Secure Shell) protocol.
SFTP is not limited to uploading and downloading files. It also supports file listing, renaming, deletion, and permission management within a secure session.
The most important feature of SFTP is that all communication between the client and the server is encrypted. This ensures that credentials and transferred files cannot be intercepted.
SFTP is not a standalone service. It is a subsystem of the SSH service, which means SSH must be enabled on the server to use SFTP.
When an SFTP connection is established, the following steps occur:
By default, SFTP uses the same port as SSH:
Port: 22
Although SFTP and FTP are often confused, they are technically very different.
The primary reason for using SFTP is security. FTP poses serious risks, especially on production servers exposed to the internet.
Key advantages of SFTP include:
SFTP is recommended for the following use cases:
SFTP provides a strong security foundation, but it should not be used alone. A hardened setup should also include:
From a knowledge base perspective, SFTP is considered a mandatory security standard in modern server management.