Connecting to the Compute Instance Using WSCP

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 WinSCP.

  2. On the WinSCP page, select Session and then New Session.

  3. On the Login page, and then Host Name, enter the Public IP Address that you copied and saved.

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

  5. In 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 Login page.

  6. From the Advanced drop-down, select Advanced.
  7. On the Advanced Site Settings page, select Connection and then Proxy.

  8. From Proxy Type drop-down, select HTTP.

  9. In User name, enter the customer proxy server.
  10. In Port number, leave the port number as 80.

  11. Click SSH, then Key exchange, and then Authentication.

  12. From Private key file, click Image shows the Periods icon. and navigate to the private key that you saved.

  13. Click OK.

    Image shows the Advanced Site Settings page

  14. On the Login page, click Login.

    Messages are shown authenticating the opc login information.

    Image shows