nerdexam
CompTIA

XK0-005 · Question #134

All users are reporting that they cannot connect to the SFTP server. The administrator runs a scan: Which of the following would allow the administrator to fix the problem?

The correct answer is A. Allow SFTP connections on port 22 using /etc/sysconfig/iptables. Users cannot connect to the SFTP server, indicating a firewall is blocking the correct port for SFTP traffic.

Troubleshooting

Question

All users are reporting that they cannot connect to the SFTP server. The administrator runs a scan:

Which of the following would allow the administrator to fix the problem?

Options

  • AAllow SFTP connections on port 22 using /etc/sysconfig/iptables.
  • BAllow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.
  • CAllow SFTP connections on port 25 using /etc/sysconfig/iptables.
  • DAllow SFTP connections on port 1456 using /etc/sysconfig/iptables.

How the community answered

(35 responses)
  • A
    86% (30)
  • B
    9% (3)
  • C
    3% (1)
  • D
    3% (1)

Why each option

Users cannot connect to the SFTP server, indicating a firewall is blocking the correct port for SFTP traffic.

AAllow SFTP connections on port 22 using /etc/sysconfig/iptables.Correct

SFTP (SSH File Transfer Protocol) securely transfers files over an SSH connection, which by default operates on TCP port 22. To resolve connection issues, the administrator must configure the firewall (e.g., using `/etc/sysconfig/iptables`) to allow incoming traffic on port 22.

BAllow SFTP connections on port 20 and 21 using /etc/sysconfig/iptables.

Ports 20 and 21 are used for traditional FTP, not SFTP, and opening these ports would not resolve SFTP connectivity issues.

CAllow SFTP connections on port 25 using /etc/sysconfig/iptables.

Port 25 is used for SMTP (Simple Mail Transfer Protocol), which handles email sending, and is unrelated to SFTP.

DAllow SFTP connections on port 1456 using /etc/sysconfig/iptables.

Port 1456 is not a standard port for SFTP or any other common, related network service, and opening it would not resolve SFTP connectivity.

Concept tested: SFTP default port and firewall configuration

Source: https://www.ssh.com/academy/ssh/port

Topics

#SFTP#Firewall#iptables#Port Numbers

Community Discussion

No community discussion yet for this question.

Full XK0-005 Practice