Skip to content

Instantly share code, notes, and snippets.

@kamarton
Created October 12, 2024 07:40
Show Gist options
  • Save kamarton/55573a864bcb9b6afdc3fb0a6200fecf to your computer and use it in GitHub Desktop.
Save kamarton/55573a864bcb9b6afdc3fb0a6200fecf to your computer and use it in GitHub Desktop.
gcloud compute engine commands example
#!/bin/bash
# SSH connect to instance
gcloud compute ssh --zone <ZONE> <INSTANCE>
# SCP copy to instance
gcloud compute scp --zone <ZONE> <LOCAL-PATH> <INSTANCE>:<PATH-TO-REMOTE-DESTINATION>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment