Class02 Lab Answer:

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:

ssh ann

Class02 Lab (Security)


ml4.us About Blog Contact Class01 Class02 Class03 Class04 Class05 Class06 Class07 Class08 Class09 Class10 dan101 Forum Google Hangout Vboxen