oci-cli
oci-cli copied to clipboard
Access Cloud Shell with oci-cli via SSH
As done in GCP's Cloud Shell CLI via gcloud cloud-shell ssh
. It's way more efficient and lightweight from a pure SSH client than from a browser. Lightweight terminals, bastioned hosts, Android shells, you name it.
Hello Alfonso, Thank you for the suggestion. The Cloud shell in browser provides an ability to use pre installed and pre authenticated OCI CLI using a browser.
Would you mind sharing the use case of ssh-ing to cloud-shell from regular terminal using OCI-CLI?
My use case (as I'm doing in GCP) is mainly two-fold:
- Using it as a bastion host to enable access to VMs which have no public IP, and avoid exposing them to the internet just for SSH'ing.
- Keeping centralized Terraform state, independently of my workstation, without the need to fumble around with TF's state storage in buckets.
Additionally, it comes very handy for using other less often used CLI tools from time to time closer to the infrastructure, while keeping production API keys, tokens, secrets, etc. safely stored in the cloud. Also, on flaky mobile connections, firing up a temporal tmux
session while working, helps a lot when on the road, with just configuring oci-cli
.
Would you mind sharing the use case of ssh-ing to cloud-shell from regular terminal using OCI-CLI?
OCI web interface is heavy and does not work properly in smartphone browsers.
Meanwhile ssh clients work fine on mobile phones, are lightweight, allow for fast key-based authentication.