This is an easy lab.
The shell commands I used to do this lab are listed below:
sudo useradd -m -s /bin/bash -G sudo abe sudo passwd abe ssh -AY abe@localhost ls -la ~abe/ sudo passwd root ssh-keygen -t rsa sudo useradd -m -s /bin/bash -G sudo ann sudo mkdir -p ~ann/.ssh sudo bash cat ~abe/.ssh/id_rsa.pub >> ~ann/.ssh/authorized_keys chown -R ann ~ann/.ssh exit ssh -AY ann@localhost
Here is an example of: ~abe/.ssh/config
Host ann HostName 127.0.0.1 User ann IdentityFile ~abe/.ssh/id_rsa
If abe has the above file in place, abe should be able to run this short shell command:
Class02 Lab (Security)