68.7k views
4 votes
You are configuring a host-based firewall so that it will allow SFTP connections. Which of the following is required?

A) Allow UDP 21
B) Allow TCP 21
C) Allow TCP 22
D) Allow UDP 22.

1 Answer

4 votes

Final answer:

To configure a host-based firewall for SFTP connections, the correct configuration is to Allow TCP 22, which is the default port for SFTP over the SSH protocol.

Step-by-step explanation:

When configuring a host-based firewall to allow SFTP connections, the correct option is to Allow TCP 22. SFTP, which stands for Secure File Transfer Protocol, operates over the SSH protocol and by default uses TCP port 22.

Unlike FTP, which can use TCP 20 and 21 for data and control connections, SFTP only requires one port for secure data transfer, and that is TCP 22. It's important to allow the correct protocol and port to ensure the firewall permits the SFTP traffic.

User Cygnim
by
7.9k points