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.
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)- A86% (30)
- B9% (3)
- C3% (1)
- D3% (1)
Why each option
Users cannot connect to the SFTP server, indicating a firewall is blocking the correct port for SFTP traffic.
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.
Ports 20 and 21 are used for traditional FTP, not SFTP, and opening these ports would not resolve SFTP connectivity issues.
Port 25 is used for SMTP (Simple Mail Transfer Protocol), which handles email sending, and is unrelated to SFTP.
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
Community Discussion
No community discussion yet for this question.