Accessing an Instance

Connect to your Oracle Cloud Infrastructure instance using SSH.

Prerequisites

Before connecting, obtain the following:

  • SSH client
  • Public IP address of the instance
  • Path to the SSH-2 RSA private key file

Connecting Using SSH

  1. Complete the Prerequisites.
  2. From an SSH client, use the default opc user to connect to the instance.

    For example:

    ssh -i PRIVATE_KEY_PATH opc@PUBLIC_IP_ADDRESS
  3. After you’re logged in as opc, you can use the sudo command to run administrative tasks.

    For example, run the following command to show details for all storage devices attached to your instance:

    sudo oci-iscsi-config --show

For more information, see: