Skip to content

Commit 01b0714

Browse files
committed
2.0.3: fix the support for OCI_INSTANCE FQDNs in port-forwarding tunnels
1 parent c91a893 commit 01b0714

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

README.md

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -19,17 +19,19 @@ Configure and ssh or create a tunnel to an Oracle Cloud Infrastructure host via
1919
4. Install [`jq`](https://stedolan.github.io/jq/).
2020
5. Install [`PCRE`](https://www.pcre.org/).
2121
6. Define the following environment variables. OCI menus below are as of October 2022.
22-
1. `OCI_INSTANCE`: OCI host Internal FQDN or Private IP. See `Compute` > `Instances` > {host} > `Primary VNIC`.
23-
2. `OCI_INSTANCE_OCID`. See `Compute` > `Instances` > {host} > `General information` > `OCID`
24-
3. `OCI_BASTION_OCID`. See `Identity & Security` > `Bastion` > {bastion} > `Bastion information` > `OCID`
22+
1. `OCI_INSTANCE_OCID`. See `Compute` > `Instances` > {host} > `General information` > `OCID`
23+
2. `OCI_BASTION_OCID`. See `Identity & Security` > `Bastion` > {bastion} > `Bastion information` > `OCID`
24+
3. For `host_user` SSH sessions only: `OCI_INSTANCE`: OCI host Internal FQDN or Private IP. See `Compute` >
25+
`Instances` > {host} > `Primary VNIC`.
2526
* If you're working with the single OCI host, setting them globally in your environment will work well.
2627
* If you're working with multiple hosts, you can pass these vars on-the-fly: see the `Usage Examples` section.
2728

2829
### Usage Examples ###
2930

3031
* Create a bastion session and ssh as `taras` server user using the system environment vars: `ssh-oci-bastion.sh taras`
3132
* Create a bastion session and ssh:
32-
`OCI_INSTANCE=10.xx OCI_INSTANCE_OCID=ocid1.instance.xx OCI_BASTION_OCID=ocid1.bastion.xx ssh-oci-bastion.sh taras`
33-
* Create a bastion port-forwarding session and launch the tunnel for the port 1234: `ssh-oci-bastion.sh -p 1234`
33+
`OCI_INSTANCE_OCID=ocid1.instance.xx OCI_BASTION_OCID=ocid1.bastion.xx OCI_INSTANCE=10.xx ssh-oci-bastion.sh taras`
34+
* Create a bastion port-forwarding session and launch the tunnel for the port 1234:
35+
`OCI_INSTANCE_OCID=ocid1.instance.xx OCI_BASTION_OCID=ocid1.bastion.xx ssh-oci-bastion.sh -p 1234`
3436
* Create a bastion session and ssh using the `ADMIN` OCI client profile: `ssh-oci-bastion.sh -o ADMIN taras`
3537

0 commit comments

Comments
 (0)