ssh -i ./path/to/private/certificate -J ubuntu@ip-of-bastion ubuntu@ip-of-server
- Install dependencies
pip3 install -r ./requirements.txt
- Given a configuration in
config.yaml
with structureserver1: ip: 192.168.0.1 bastion: 212.186.105.45 serverN: ip: 192.168.0.2 bastion: 212.186.105.45
- We can use a simple python helper like this
bastion-ssh.py -i ./path/to/private/certificate -c ./path/to/config/file name-of-server