Resetting the Password for an Oracle Container Cloud Service Instance Administrator Using SSH

You can change an Oracle Container Cloud Service instance administrator’s password using SSH rather than using the Oracle Container Cloud Service Container Console.

Having specified an instance administrator’s username and password when you created an Oracle Container Cloud Service instance, you can normally change either or both later by logging into the Container Console.
However, if you don’t know the instance administrator’s password (perhaps because another person has changed the password and subsequently left the company), you won’t be able to log into the Container Console to reset it. In this situation, provided you know the instance administrator’s username, the solution is to use SSH to log into the manager node and change the password.
Note the instructions below assume:
  • You know the instance administrator’s current username. When creating a new instance, ‘admin’ is suggested as the administrator username, but a different username can be entered. Even if ‘admin’ was originally specified as the instance administrator’s username, the username can also be changed later on the My Profile page of the Container Console. You must know the instance administrator’s current username. If you don’t, you won’t be able to reset the administrator’s password.

  • The machine you use to connect to the manager node:
    • has an SSH client installed

    • has access to the SSH private key paired with the SSH public key that was specified when the service instance was created

To change the instance administrator’s password using SSH:
  1. Use SSH to connect to the manager node of the Oracle Container Cloud Service instance for which you want to change the instance administrator’s password.
  2. In the terminal window, type change-admin-password.sh <admin-username> where <admin-username> is the current username of the instance administrator.
  3. In the terminal window, when prompted for a password, enter the new password.
  4. Close the SSH connection by typing exit in the terminal window.
  5. To verify the password has changed:
    1. Go back to the Oracle Container Cloud Service Console Services tab.
    2. Click the Menu icon Menu icon beside the service instance, and choose Container Console.
    3. On the Login page, enter the instance administrator’s username and the new password you’ve just specified.
    Assuming you successfully changed the instance administrator’s password, the Container Console is displayed.