nerdexam
CompTIA

SY0-501 · Question #363

A security administrator needs to address the following audit recommendations for a public-facing SFTP server: Users should be restricted to upload and download files to their own home directories onl

The correct answer is B. ChrootDirectory C. PermitTTY. This question tests knowledge of OpenSSH server configuration parameters used to harden a public-facing SFTP server by restricting user directory access and disabling interactive shell sessions.

Submitted by emma.c· Mar 4, 2026Security operations

Question

A security administrator needs to address the following audit recommendations for a public-facing SFTP server:

Users should be restricted to upload and download files to their own home directories only. Users should not be allowed to use interactive shell login. Which of the following configuration parameters should be implemented? (Select TWO).

Options

  • APermitTunnel
  • BChrootDirectory
  • CPermitTTY
  • DAllowTcpForwarding
  • EIgnoreRhosts

How the community answered

(19 responses)
  • A
    5% (1)
  • B
    74% (14)
  • D
    16% (3)
  • E
    5% (1)

Why each option

This question tests knowledge of OpenSSH server configuration parameters used to harden a public-facing SFTP server by restricting user directory access and disabling interactive shell sessions.

APermitTunnel

PermitTunnel controls whether TUN/TAP device forwarding is allowed for VPN-like tunneling, which is unrelated to restricting users to home directories or preventing interactive shell access.

BChrootDirectoryCorrect

ChrootDirectory in sshd_config jails SFTP users to a specified directory (typically their home directory), preventing them from traversing the filesystem outside that path. When combined with the internal-sftp subsystem, it ensures users can only upload and download files within their designated chroot environment.

CPermitTTYCorrect

PermitTTY, when set to 'no' in sshd_config, prevents the allocation of a pseudo-terminal (TTY) for the session, which effectively blocks users from obtaining an interactive shell login while still allowing SFTP file transfer operations to proceed.

DAllowTcpForwarding

AllowTcpForwarding controls whether TCP port forwarding is permitted through the SSH connection, which addresses tunneling security but does not restrict directory access or prevent interactive shell logins.

EIgnoreRhosts

IgnoreRhosts controls whether .rhosts and .shosts files are used for authentication, which is a legacy authentication hardening measure and has no effect on directory restrictions or interactive shell access.

Concept tested: SSH SFTP hardening with ChrootDirectory and PermitTTY

Source: https://man.openbsd.org/sshd_config

Topics

#SFTP hardening#ChrootDirectory#PermitTTY#SSH configuration

Community Discussion

No community discussion yet for this question.

Full SY0-501 Practice