gcloud compute ssh
Jump to navigation
Jump to search
gcloud compute ssh (doc)
gcloud compute ssh --zone "europe-west6-a" "your-vm" --project "your-project" WARNING: The private SSH key file for gcloud does not exist. WARNING: The public SSH key file for gcloud does not exist. WARNING: You do not have an SSH key for gcloud. WARNING: SSH keygen will be executed to generate a key. Generating public/private rsa key pair. Enter passphrase for "~/.ssh/google_compute_engine" (empty for no passphrase):
External IP address was not found; defaulting to using IAP tunneling.
Example[edit]
gcloud compute ssh --zone "europe-west3-c" "your-instance-name" --project "your-project"
Related[edit]
- SSH clients:
ssh aws ec2-instance-connect sshgcloud compute instances listgcloud projects listgcloud compute scp
gcloud compute instances createVM_NAME --image-family=IMAGE_FAMILY --image-project=IMAGE_PROJECT --metadata enable-oslogin=TRUE- --ssh-key-expire-after=8h
See also[edit]
Advertising: