**Unit 2 Project Walk-Through** By: Wilson Zhu Note: This walk-through will only cover parts 1,3,4. **Part 1** RUn the command `ssh-keygen -t rsa -b 4096 -C "CYB101 Ubuntu Key"` ![](https://hackmd.io/_uploads/SJWmsRoy6.png) Private key: ![](https://hackmd.io/_uploads/SJ1NoAjJ6.png) Note: Private Key is not shown Public Key: ![](https://hackmd.io/_uploads/HkTHoRikp.png) Note: Rest of Key is not shown **Part 3** Using `openssl` to encrypt a message and decrypt a message. Start of with using the following commands: ``` openssl genrsa -out ~/.ssh/privatekey.pem 2048 openssl rsa -in ~/.ssh/privatekey.pem -out ~/.ssh/publickey.pem -pubout -outform PEM ``` ![](https://hackmd.io/_uploads/Skwlh0s16.png) **Part 4** Install Git using the following command: `sudo apt-get install git -y` ![](https://hackmd.io/_uploads/rJl4nRok6.png) Public Key: ![](https://hackmd.io/_uploads/SJsS30sJa.png) Note: Rest of key is not shown ![](https://hackmd.io/_uploads/SJtUnRjJa.png) Note: Rest of key is not shown ![](https://hackmd.io/_uploads/rJdFhAjy6.png) **Part 4 trouble shooting** If you run into the following error in part 4: ![](https://hackmd.io/_uploads/H19inRoka.png) Update git using the following commands one at a time: ``` sudo add-apt-repository ppa:git-core/ppa ``` ``` sudo apt-get update ``` ``` sudo apt-get install git ``` Following these commands, restart the `ssh-add` process.