Created
October 12, 2024 07:40
-
-
Save kamarton/55573a864bcb9b6afdc3fb0a6200fecf to your computer and use it in GitHub Desktop.
gcloud compute engine commands example
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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