askvity

What Port is SFTP?

Published in Networking 1 min read

SFTP (SSH File Transfer Protocol) uses port 22 by default.

SFTP operates as a subsystem over the SSH (Secure Shell) protocol. Because of this, it leverages the same port used by SSH.

Key Points:

  • Default Port: 22
  • Protocol: Runs over SSH
  • Function: The SSH server listens on port 22 for connection requests, including those from SFTP clients.

Can the Port Be Changed?

Yes, the default port for SFTP can be changed. This might be done for security reasons (though security through obscurity is generally not a strong defense), for testing purposes, or to avoid conflicts if another service is already using port 22. If the port is changed, the SFTP client must be configured to use the new port number when connecting to the server.

In Summary: SFTP utilizes port 22 by default as it is a subsystem of the SSH protocol. While configurable, the standard port remains 22.

Related Articles