January 2018
Intermediate to advanced
376 pages
8h 45m
English
For this lab, you can use either the CentOS virtual machine or the Ubuntu virtual machine. You'll add a group, then configure the sshd_config file to allow group members to only be able to log in via SFTP, and to confine them to their own directories. For the simulated client machine, you can use the terminal of your MacOS or Linux desktop machine, or Cygwin from your Windows machine:
sudo groupadd sftpusers
sudo useradd -G sftpusers max
On Ubuntu, do:
sudo useradd -m -d /home/max -s /bin/bash -G sftpusers max