Using the OCI CLI with a federated user from a Docker container (or over ssh)

The OCI team just announced the ability for federated users to use the CLI.

The TL;DR description of the feature is that users don’t have to create a key pair and upload it into OCI. Instead you can just run “oci session authenticate” and the CLI will open your browser and push you through a (much) simpler process that basically amounts to just logging in and clicking yes.

If you use the CLI directly on your laptop this works swimmingly. But what if you want to run the CLI from inside a Docker container or on a remote server over ssh?

Read on for a trick you can use to do that!

Pages: 1 2

Add Your Comment