Networking Concepts
A security team requires encrypted file transfers to a vendor and wants to open only one inbound port on the firewall. Which port should be allowed for SFTP?
Show the answer
Correct answerB. TCP 22
AWhy not this: UDP 69 is TFTP, which has no encryption or authentication.
BWhy this is right: SFTP is carried inside an SSH session, so it uses TCP 22 for everything.
CWhy not this: TCP 21 is the FTP control port; FTP is unencrypted and is not SFTP.
DWhy not this: TCP 443 is HTTPS; SFTP does not use it by default.
SFTP runs over SSH, so it uses TCP 22 for both commands and data over one encrypted channel. TCP 21 is plain FTP control, which is unencrypted and also needs a separate data connection.