Continue writing exercise 3.

This commit is contained in:
2023-12-20 01:59:52 +13:00
parent ae538c4ea9
commit 73ebf57e43
2 changed files with 4 additions and 4 deletions

View File

@ -77,14 +77,14 @@ scp -i disco_key disco_key ec2-user@$PREP_SYSTEM_IP:/home/ec2-user/disco_key
To make life a bit easier down the track let's set an environment variable on the prep system so that we can preserve the bastion's IP:
```bash
ssh -i disco_key ec2-user@$PREP_SYSTEM_IP
echo HIGHSIDE_BASTION_IP=$(echo $HIGHSIDE_BASTION_IP) > highside.env
ssh -i disco_key ec2-user@$PREP_SYSTEM_IP "echo HIGHSIDE_BASTION_IP=$(echo $HIGHSIDE_BASTION_IP) > highside.env"
```
Finally - Let's now connect through to our **High side** bastion 🚀
Finally - Let's now connect all the way through to our **High side** bastion 🚀
```bash
ssh -i disco_key ec2-user@$HIGHSIDE_BASTION_IP
ssh -t -i disco_key ec2-user@$PREP_SYSTEM_IP "ssh -t -i disco_key ec2-user@$HIGHSIDE_B
ASTION_IP"
```
<Zoom>