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.
Loading...
Related Quiz
- To change or set the UUID of a filesystem in Linux, you would use the ________ command.
- To iterate over a range of numbers in a loop, one might use the seq command combined with the _________ loop.
- What is the primary purpose of the visudo command?
- To disable the debugging mode that was enabled with set -x, you can use the command __________.
- How do you denote the start of a block of code in a Bash if statement?