oci-cli icon indicating copy to clipboard operation
oci-cli copied to clipboard

Access Cloud Shell with oci-cli via SSH

Open pataquets opened this issue 2 years ago • 3 comments

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.

pataquets avatar Mar 17 '22 22:03 pataquets

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?

harshkumar-dev avatar Mar 18 '22 21:03 harshkumar-dev

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.

pataquets avatar Mar 19 '22 13:03 pataquets

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.

phd avatar Jun 05 '23 06:06 phd