I’m attempting to use the Publish Over SSH plugin to tunnel from Jenkins, through a (publicly facing, in AWS) Bastion Host, into a (private, in AWS) application server.
Some additional information:
- I can tunnel to my private app server, locally, after using the ssh-add -K mysecret.pem, and running ssh -A ec2-user@<my bastion ip> and then ssh ubuntu@<my private server ip>
- Currently, the ssh key is shared across Bastion Host and private app server, but likely wouldn’t be in the future
- I’m attempting to use the “Jump host” section to define the ip address of the Bastion Host, and filling out the required sections (Name, Hostname, Remote Directory) for the application server
Some potential sources of problem:
- My Bastion Host has a default user of ‘ec2-user’, whereas my application server’s default user is ‘ubuntu’, but there doesn’t seem to be a way to configure a different user for a “jump host”
Any suggestions you can provide are greatly appreciated.