Hi, i have application server which can only accessed via bastion server.
the topology is like 
The bastion server itself can be accessed from public, so have no issue to run pipeline.
I already add bitbucket generated "SSH Key" and "known hosts". It runs perfectly if i deploy to Bastion server.
What i've done :
1. Put bitbucket generated ssh Key to bastion & application server
2. add in the yaml file the result is run perfectly
image: atlassian/default-image:2
pipelines:
default:
- step:
name: 'Deployment to Staging'
deployment: staging
script:
- ssh -v -p 22 user@bastion_public_ip 'cd /var/www/html;git pull"'
3. Change in the yaml file the result is cannot connect. (Port 3000 is forwarding, I can access it from other server / my local)
script:
- ssh -v -p 3000 user@bastion_public_ip 'cd /var/www/html;git pull"'
4. Add the key directly in the yaml file, cannot connect
script:
- ........
- ssh -v -p 3000 -i bastion_key user@bastion_public_ip 'cd /var/www/html;git pull"'
Hope you guys can guide me the step and sample yaml file
Thank you