title: Access instances in GCP
body: <p>How I can access GCP instance using ssh key</p>
  
  <p>It seems when I create a instance in GCP, I can only access it through the "ssh" button from the console. I want to know if there is a way I can define a ssh key pair in GCP and whenever I create a instance, I have a choice to use this key pair. In AWS, I could do this and after I create a instance, I could ssh to it as user "ec2".</p>
  
  <p>What I am doing now is after the instance was created in GCP, I "ssh" to it from console ssh option, and add my public key to the authorized_keys on the instance. After that, I could ssh to it from any host that has my private key.</p>
  
  <p>I want yo know if there is a way I can add my public key to the instance when i create it and I don't have to manual do it afterward and just ssh on to it.</p>