Class02 Lab Answer:

This is an easy lab.

On the guest, 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 ls -la /root
chmod 700 ~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/ >> ~ann/.ssh/authorized_keys
chown -R ann ~ann/.ssh
ssh -AY ann@localhost

Here is an example of: ~abe/.ssh/config

Host ann
  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:

ssh ann

Class02 Lab (Security) About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen