You are setting up a new server and need to ensure that only specific users can SSH into the machine. Which configuration file would you modify to achieve this?

  • /etc/ssh/sshd_config
  • /etc/hosts.allow
  • /etc/ssh/authorized_keys
  • /etc/passwd
To restrict SSH access to specific users, you would modify the /etc/ssh/sshd_config file. This file contains the configuration options for the SSH server, including settings related to user access, authentication, and permissions.
Add your answer
Loading...

Leave a comment

Your email address will not be published. Required fields are marked *