Connecting to the Compute Instance Using Putty

You can connect to a running instance by using a Secure Shell (SSH) or Remote Desktop connection. Most UNIX-style systems include an SSH client by default. Windows 10 and Windows Server 2019 systems should include the OpenSSH client, which you need if you created your instance using the SSH keys generated by Oracle Cloud Infrastructure. For other Windows versions, you can connect to the command line using a free SSH client called PuTTY available from http://www.putty.org.

Before you begin, you'll need the following information to connect to the instance:

  • The public IP address of the instance. You can get the address from the Instance Details page in the Console. Open the navigation menu and click Compute. Under Compute, click Instances. Then, select your instance. Alternatively, you can use the Core Services API ListVnicAttachments and GetVnic operations.
  • The default username for the instance. If you used a platform image for Linux, CentOS, or Windows to launch the instance, the username is opc. If you used an Ubuntu platform image to launch the instance, the username is ubuntu.
  • For Linux instances: The full path to the private key portion of the SSH key pair that you used when you launched the instance. For more information about key pairs, see Managing Key Pairs on Linux Instances.
  • For Windows instances: If you're connecting to the instance for the first time, you will need the initial password for the instance. You can get the password from the Instance Details page in the Console.

To connect to the Compute instance:

  1. Launch PuTTY.

  2. On the Basic page, in Host Name, enter the public IP address that you copied and saved when creating the Compute instance.

  3. In Port number, leave the default value 22.

    Image shows the Basics page.

  4. Under Connection, then Data, and then Auto-login user name, enter opc.

    The opc user can perform operations that require root access to the compute node, such as backing up or patching; this user can use the sudo command to gain root access to the compute instance.

    Image shows the Basics page.
  5. Under Connection, then Proxy, and then Proxy Type, select HTTP.

  6. In Proxy hostname, enter the customer proxy server address.

  7. In Port number, leave the port number as 80.

    Image shows the Base page.

  8. Under Connection, expand +SSH, and then select Auth.

  9. From Private key file for authentication, enter the private key that you received when creating the Compute instance.

    You can also click Image shows the Periods icon. and navigate to the private key that you saved.

    Image shows the Basic page.

  10. Click Open to launch the Compute instance.

    In the following example, the agent has already been installed to the Compute instance and has been started.

    Image shows the Compute instance connected by Putty.