Where is SFTP port Linux? By default, SFTP uses port number 22, which is an SSH server. In this guide, we’ll change it to port 2222 from default port 22 TCP. But you can choose to use any other ports of your choice to configure the SFTP connection. Note: Ports 0 – 1023 are reserved for system services.
Does SFTP use port 21 or 22? Communication protocols
The acronym stands for “File Transfer Protocol”. It usually runs over TCP port 21. SFTP – another, completely different file transfer protocol that has nothing to do with FTP. SFTP runs over an SSH session, usually on TCP port 22.
Is SFTP always port 22? SFTP (SSH file transfer protocol) uses port number 22 by default, but can be configured to listen on different ports.
How do I SFTP to a specific port? You can use -P option or -oPort option to SFTP to a server from a specific port.