February 2020
Intermediate to advanced
666 pages
15h 45m
English
With the exception of the slight difference in user-creation commands, this procedure works the any one of your VMs when we get to the hands-on lab.
We'll begin by creating an sftpusers group:
sudo groupadd sftpusers
Create the user accounts and add them to the sftpusers group. We'll do both operations in one step. On your CentOS machine, the command for creating Max's account would be as follows:
sudo useradd -G sftpusers max
On your Ubuntu machine, it would be as follows:
sudo useradd -m -d /home/max -s /bin/bash -G sftpusers max
Open the /etc/ssh/sshd_config file in your favorite text editor. Find the line that says the following:
Subsystem sftp /usr/lib/openssh/sftp-server
Change ...