> For the complete documentation index, see [llms.txt](https://paul-gleason.gitbook.io/champlain-college-classes/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://paul-gleason.gitbook.io/champlain-college-classes/sec-440-systems-security/labs/project-4-aws.md).

# Project 4 - AWS

Go to the learner lab environment

<figure><img src="https://lh3.googleusercontent.com/J-ftjUhmbK60Ns7fkNrzSffDlkuvfmg8XWtclIEpaaAxVRPsqntYhlfxaIsL2ROO7rHkaCsK-k7CK3Vs4mFaH6VVWbenYyAKC6qwtUDX-ZzrtDeaNKjsV2tLjOwCHA5webWcGixdlEhI8Vroc--JwqE" alt=""><figcaption></figcaption></figure>

Start instance

<figure><img src="https://lh3.googleusercontent.com/DyFOJxxflQzPch47V3VleTl_0n6XPtMSMzKLpObviYji5mPqhQoyq5sqFAoRAeMxS8Tch58UJc4RdPSG2XC4FgiteXla4ugoiIONPdz2c257V-aUft8iiS-9PA-MxIgnwOp9798by4S8XwZI9JNLM3I" alt=""><figcaption></figcaption></figure>

Once the icon goes green click on aws

<figure><img src="https://lh6.googleusercontent.com/q7RlZg0Tr8Pe-RonSDSLWEXFA4kxhocjM2G7_mAwxolVXrUfgGQb-SAlt8e_A6pevqxWSc71Pn_j9XXIkT9zWDbdpOgTqSbC_AYL62pMD7p7UfxNqUl6ZcFvi1Bp8E9uiPxBRK9m-bp0a7eJUJcOjPM" alt=""><figcaption></figcaption></figure>

You will end up here

<figure><img src="https://lh5.googleusercontent.com/JmYbOKfKaKOUrHHIm1i-IKKz8eA_fExGmzp43XGEF-9MIjz-RFQLKGVpvCk9Z7U0zYaSqz04ZhQ2QcvJg5mY5hlZOYjY_QmW2lV-FzfSl40j3f1A6mn5s5VFBw4uvOC4_z_G0CSWAy68h3XJIz494DM" alt=""><figcaption></figcaption></figure>

### Creating a key pair:

navigate to the EC2 console

<figure><img src="https://lh6.googleusercontent.com/dm6sVEYQAV6P_bdaZ-VJStz9eZGs6PEGPTmjUURKOmFEej_P_9K2OelI1g0TOqOuAjjZpTgHFbbC_hHqelPLfs1x0t-iMIFs24XOTaKMqOzFtT84qjQSTscbeQ5mlDxLl4R8041lPSKOkrr6fWblAXY" alt=""><figcaption></figcaption></figure>

Now navigate to the key pairs under networking & security

<figure><img src="https://lh6.googleusercontent.com/VlteWB_ftUv6byp12PPA0y6CI5m9X6KCclIRIzQy2GWLK58RwYGtLeJr3S8DkjqOSQvoV6MJsdQu6ZxxphOIz4neGVU67dQFjqyZUhNZrl1OI2LPSnZbkZgfK4Hn2IOAU8Fqfyeu-12jIdlRqtV6k78" alt=""><figcaption></figcaption></figure>

Create key pair

<figure><img src="https://lh3.googleusercontent.com/WZuhQW9PVAADCDQlI0HjkvAHT0VxEJ83JOOXa43Bg3vELAlVT9alYRhfeRVlYb3YiOvgox09HdWYGNzD9bydFmx1jl5LXJHMQGuH9gPKUF7en8KdWPdrnHDOfAGo1Dbk_Mk89OBXhxcWNbqjF-OyeB0" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/GOr-IfBPd77yPYxfXggJpU9vkg5nveTVjWvr7lMjP2fmPdFlHEwW2oUFKDe9tFr0bDji_R0aQjVN6NBowVtdUncB6LWKhOE34aN3XAtMHl2lY6RQMllI4FuiIA9Ebo0mRKE5qiVEbyg9yBJ2UKXcA1I" alt=""><figcaption></figcaption></figure>

### Create security groups:

<figure><img src="https://lh4.googleusercontent.com/FA9U27EV-66FTE6t-CSlmyVfM4_LcOiZ3FmF1dPkO0fEbmxTuVByDQ4hctRjHi-dmvEaxW-6yeyHhj74r8_lO1dMjU6qS77ExyQnUdnxBQR8TLus49AHFPs_K0I9vxgLfo4wTfR2ECAaorCrR8ci5UA" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/uj8PHo7gXDYriopTzpeQHl55ZVVzCnGbBncjVwIj-BDG4M50FJXRBMN7mnRDZDEBWI-4O4QZyiNA9pg1GtZOyH2Z_TXISUm3yNnTD_TYGyQc3JURjGCruL7JgJLo8cSBGEwnWAE9JunTas2mSmqVhAc" alt=""><figcaption></figcaption></figure>

Rule for ssh

<figure><img src="https://lh3.googleusercontent.com/ek11ZchmlQltN0hBnso4pFDuNauHOn6V6p_7BHBchpw0TbOL6wR1obw5QFg0t8Hg-Ud83yLaN5SA2k2hWQmZZYifDudw07XbH-sh8kOqx7W_OFDUPqcg9Wjol6PPX1fxbFiL6hXnGRyqpZi4dkoXT0Y" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/EKu1YdSBvFK1-xV0aRTK7Y1wcvriJhT0FwvoM0jVTOGn-8DJDuDpeQ_tT5z9HAVjeKR2_bsMhqnsWI-ayBXESadmNvuLlAdLm-lfCU0cdKLTaVerCrG6MRpXpXTy1ZT0hc93l9tXbughd92vJiYIs9M" alt=""><figcaption></figcaption></figure>

### Launch an Instance

<figure><img src="https://lh3.googleusercontent.com/SPH8GJZlIR5p8Dl52CQYuOwiGxzyvz9ocSetaiwHpt4LvnLhT0ueRi5uT20vorM1AMA4f4CGSJWFQXSTIju1ekHX6a3YSNTMxxGU6jmGZBpTXMrLpuMhUCK-Ikjy8zToo6AG1dRKpmkpXTiKwnCVyAY" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/xhwqhU4q2mW-C68PDz4PliqQ7hOtJRau5Z0O2bHUV64y3n9qlFYPX0bvuZnOY0tsSlfdmEO8BsgBlEaqqoVsbw9UHvUOMelW5roOxwc2p0YGnpdhdRGHTxGvOp3FIM8vCt-FAU_vBSarNQNkeIGhg1s" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh5.googleusercontent.com/wFXb8Z67WwmuUYU2VUXI4CJAcaMIvWFgz3tVr6kRGemI4G_44o1xSDUmlZBmLPb-XllxBeiuWkF-TmL7CRf3IxFbLW-yyjalJ1BpFl515IbdpUJcuKBAc-QVHQS0FeVL1P8hXflp1ebSKwTa3vaoXuY" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh4.googleusercontent.com/Z5ERp6mDsvBrxWPzRU1531KgOBZguKVrOd0GJwT-2cy3xXRvA0Zi2u-6-eAesY8whO_Fc3W7h0m2XRF5zsTXD6PmWBCfDha5nLSWtdYmFPDZbwYZA84nete1soIdUyzE4_a4bpg_VjKC2FAUyZSGh0I" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/u1CArvfpeRU8DZ4qmqa39irMuFx0UjfZbVNFfuVeAKvqlDW9-NIn6L1PwcRe5uFnX69hj98RTmG3hFcH2WQ_--7wnd5Bw4-JJFPDkA-M3Jv_g59W19pfTL9h601Skn01zCGPv6vb8G_xq7-AUoj0Ajs" alt=""><figcaption></figcaption></figure>

### Successful SSH connection

<figure><img src="https://lh5.googleusercontent.com/Zw_-f4uCHKAIQME1Et5yNbsZ-8JEVMDJG09ShnQ-O6JSUwBFCRF4vseOzeLnp40zLs8vJcY7aEfCOOlyOdk_jUJi8dZYYPweo-BiNz_RZ279c1xBbFPK9VuZ8DY4a2bsbGKET6cEKdNU6-6RkHI3JbQ" alt=""><figcaption></figcaption></figure>

### Web Server setup  in AWS instance

`Sudo yum install httpd`

`Sudo nano /var/www/html/index.html`

`Sudo systemctl restart httpd`

Change the security group inbound rules

<figure><img src="https://lh5.googleusercontent.com/oT5e5eQ38NYZmVvFujvrjkLXiKep0gBEFv8ah2lXPbTv65rd4at6YzkIvDOv8im60Fnntxvu77FpQOPpn_EiUR2T1pB---oVLSZUUgFr_RtEPZLV4CvWY0K3EMARWQ5Fp0TiZ2ac4PmZWkWgoE-aL-s" alt=""><figcaption></figcaption></figure>

Connection from lan machine

<figure><img src="https://lh5.googleusercontent.com/3LYeIuhMwVUd34u-M_-bdRVR7PEJK5x55Y82ii_vUwQIf_He5cqyRKTlrdUGoEN9YXD5h76ucmDDc3tA4gDhWgl6Lsu1xywU4485PXqOgJjb39OrInMqiKGy8NbpfAI_C5i6OksKAxSAM6dWA66C0mI" alt=""><figcaption></figcaption></figure>

How to get password for windows instances

<figure><img src="https://lh6.googleusercontent.com/CDeYX_zUf-suLQ8BaX5JcQDrTkenA2AVl8I2-2Hc-1fjOqhasyoV2m24AmYi2ZQw0O0_vuoMynnNYBogoIBXycjPakSJnxntHsxfkOyMkV0PSjSZM8uzKoatqTZtTwb4s2m1zrrY_Y68Pf8BBX4iG7Q" alt=""><figcaption></figcaption></figure>

Remmina RDP into windows server

<figure><img src="https://lh6.googleusercontent.com/l-HvDGU_H_DNMedHL3rubh2ypdiY_DDWc2D6RivZay-U8kjyKyLJhGi81vbLGlZ6aRpkcB8f9zgKeU5G4NdtA9kl5yn1zu7PyzZtKcBgLksl28hgNJcJL0M2LTrWgq0N7fj5A5sbtHjFAvPesKkgP_k" alt=""><figcaption></figcaption></figure>

How to terminate instances

<figure><img src="https://lh4.googleusercontent.com/LBXbavxSMew1Th9cJ5hSqe8GxeEEDK_IZqHb9gyaH3ojOlLuEm41BaiuqvGQy2ch_PQrjXH8vkG7GFCwTPqjsIIElqU1NMcK6CXixrECJhV69JuROZNAQQm1hbeH8M9ruFKNCc7wRGNzv59gmUEYRHc" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/bVH4h_EGY4oqtmHPjIdqdNymv6W1CHmosHGybtm77lHqLSHusT7KRTaOjP_dVIE34QMttVKFpnN2dIvgCqgXzg57iUCa0ZAXDaJLX8KmonxFKr2ecvH3vjyoIEZT41_1EbqtvoZRgo3sP2mY2halElE" alt=""><figcaption></figcaption></figure>

<figure><img src="https://lh6.googleusercontent.com/4NG9PLym9hJHR0sY9EA86DcXw-bj69jYwZO_BjE6Nnblu9wDGzbPopWAwb4Cls9izGCicHKhXVzvFctBQCQgjxRoSeX-VB0HTWjS2Ap4AiyztLftgoyUR5SlXethTk6d5YZQm654N30q4SNi3qxTPas" alt=""><figcaption></figcaption></figure>

<br>


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://paul-gleason.gitbook.io/champlain-college-classes/sec-440-systems-security/labs/project-4-aws.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
