How to Use a Serial Console Connection to Edit Files or Change User Key in OCI Linux Instance
Oracle Cloud Infrastructure
How to edit files or change a user's key inside an OCI Compute IaaS instance using a serial console connection.
The described procedure may or may not apply to OCI PaaS instances. For more information check the OCI documentation for the specific PaaS solution.
This document assumes you have a working serial console connection to your instance and are seeing the login prompt at the serial console terminal.
If you don't have yet established a successful serial console connection please follow the OCI documentation here: https://docs.cloud.oracle.com/iaas/Content/Compute/References/serialconsole.htm