Creating a Dynamic Port Forwarding (SOCKS 5) Session in Bastion
Create a dynamic port forwarding (SOCKS5) session.
Ensure that you have the public key file of the SSH key pair that you plan to use to connect to the session. To learn more, see Managing Key Pairs on Linux Instances.
Use the oci bastion session create-session-create-dynamic-port-forwarding-session-target-resource-details command and required parameters to create a dynamic port forwarding (SOCKS 5) session:
oci bastion session create-dynamic-port-forwarding --bastion-id <bastion_ocid> --key-details <key_details> [OPTIONS]
For a complete list of flags and variable options for CLI commands, see the Command Line Reference.
Run the CreateSession operation to create a dynamic port forwarding session.