Although you can edit ~/.ssh/config file to proxy connections through a Bastion, the only line you need to do ssh tunnel through a bastion (with a .pem file) is:
ssh -i ~/.ssh/file.pem -N -L 8080:internal.host:80 [email protected]
Although you can edit ~/.ssh/config file to proxy connections through a Bastion, the only line you need to do ssh tunnel through a bastion (with a .pem file) is:
ssh -i ~/.ssh/file.pem -N -L 8080:internal.host:80 [email protected]