Install gcloud CLI to access Google Cloud Shell via SSH on Android using Termux.
- First: Run
curl https://sdk.cloud.google.com | bash
- Note: This will fail when trying to install components. Ignore this.
- Then
$PREFIX/google-cloud-sdk/install.sh --override-components
- (without specifying components)
- Will add gcloud to $PATH
- And then
gcloud components install gsutil
- Finally
gcloud --console-only
Using the --console-only
flag is useful if you’re running the command on a remote system using ssh
and do not have access to a browser on that system. You must then manually open the provided URL in a browser on your local system to complete the authorization process.
Google Cloud Shell can be accessed using command:
gcloud cloud-shell ssh
Leave a Reply