Question: can sftp use port 21?
Answer: Communication protocols 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. It has been around since late 1990s.