You need to use ProxyCommand in your SSH config. So, in case you haven't set up your `~/.ssh/config`, I'd refer to here
So You would want to do the following:
1. Place the bastion as a Forward Agent in your SSH config.
2. Use ProxyCommand to proxy your connection from the bastion to your target server.
Here is a quick example:
Host
ForwardAgent yes
Host
User
Hostname
ProxyCommand ssh -q -W %h:%p
IdentityFile ~/.ssh/id_rsa