#!/bin/bash wtf1='anuwcljsgj4tlxychohl6jlyb3b6rhvtdrlcuuz4wrly75gb4sa' wtf2='anuwcljsgj4tlxyc3pvsqfqz3b446b5uliw6z4d6qyxe5ob3vnbkzhizwqxq' target="ocid1.instance.oc1.iad.${wtf1}" bastion_user="ocid1.instanceconsoleconc1.iad.${wtf2}" bastion_host="instance-console.XX-XXXXXXX-1.XXXXXXcloud.com" bastion="${bastion_user}@${bastion_host}" proxy="ssh -i /tmp/xxx.key -W %h:%p -p 443 ${bastion}" exec ssh -i /tmp/xxx.key -o "ProxyCommand=${proxy}" "${target}"