Advertisement
efxtv

Google cloud shell in terminal

Aug 5th, 2023 (edited)
85
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | Cybersecurity | 0 0
  1. Google Cloud shell ssh
  2.  
  3. curl -o sdk.sh sdk.cloud.google.com
  4.  
  5. chmod +x sdk.sh
  6.  
  7. ./sdk.sh --install-dir=/opt
  8.  
  9. ./gcloud auth login --no-launch-browser
  10.  
  11. ./gcloud cloud-shell ssh 1>/dev/null
  12.  
  13. alias gc='~/path/gcloud cloud-shell ssh 1>/dev/null'
  14.  
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement