This lab will work on any of your VMs. Follow these steps:
- On the VM that you wish to configure, create user accounts for Frank, Charlie, and Maggie. On Ubuntu, do the following:
sudo adduser frank. . .
On CentOS, do the following:
sudo useradd franksudo passwd frank. . .
- Create the webadmins group and add Frank to it:
sudo groupadd webadminssudo usermod -a -G webadmins frank
- From either your host machine or from another VM, have the three users log in. Then, log them back out.
- Open the /etc/ssh/sshd_config file in your favorite text editor. At the bottom of the file, add an AllowUsers line with your own username, like so:
AllowUsers donnie
- Then, restart the SSH service and ...