SFTP uses port 22 (not 21) because it runs over SSH, not FTP. FTP uses port 21 (insecure), FTPS adds SSL/TLS encryption to FTP, while SFTP is a completely different SSH-based protocol. Connect with custom ports using -oPort=NUMBER. #SFTP #SSH #FileTransfer

https://pupuweb.com/what-port-does-sftp-really-use-and-why-is-it-confused-with-ftps-port-21/

What Port Does SFTP Really Use and Why Is It Confused with FTP's Port 21? - PUPUWEB

Is the SFTP Port Always 22, and How Do You Connect If It's Different? A common question in IT and web development circles is whether SFTP uses port 21 or

PUPUWEB