Type Protocol Port Range Source Purpose
SSH TCP 22 <BOSH CLI's IP> SSH for bootstrapping & final access
Custom TCP Rule TCP 6868 <BOSH CLI's IP> Agent for bootstrapping
SSH into jumpbox
By default jumpbox user is added via user_add job. Unique SSH private key is generated.
$ bosh int ./creds.yml --path /jumpbox_ssh/private_key > jumpbox.key && chmod 600 jumpbox.key
$ ssh jumpbox@... -i jumpbox.key
Consider using SOCKS5 proxying
Instead of running CLI from the jumpbox VM, you can use it as a proxy.
# Start SOCKS5 proxy on your machine
$ ssh -N -D 9999 jumpbox@... -i jumpbox.key -f
# Let CLI know about it
$ export BOSH_ALL_PROXY=socks5://localhost:9999
# Access Director *thru* jumpbox (instead of being on the jumpbox)
$ bosh -e bosh-1 env
jumpbox-deployment
Deploy single vanilla jumpbox machine. Works well with BOSH CLI SOCKS5 proxying.
IMPORTANT: Make sure to configure security group to allow only necessary traffic! Better yet drop all incoming traffic when jumpbox is not being used.
Planned
--vars-store /dev/nullCLI support?Example on AWS
Requires new BOSH CLI v0.0.146+.
Above command requires only two ports open:
SSH into jumpbox
By default
jumpboxuser is added viauser_addjob. Unique SSH private key is generated.Consider using SOCKS5 proxying
Instead of running CLI from the jumpbox VM, you can use it as a proxy.