- Create a key
ssh-keygen -C username
- The private key password can be left unset; copy the public key from the folder to upload it.
- Click on Metadata ----> SSH Keys, and add the SSH public key we generated.
Format without an expiration date:
KEY_VALUE USERNAME
Format for keys with an expiration date:
KEY_VALUE google-ssh {"userName":"USERNAME","expireOn":"EXPIRE_TIME"}
KEY_VALUE: SSH public key value
USERNAME: Your username
EXPIRE_TIME: The expiration time of the key, in ISO 8601 format. For example: 2021-12-04T20:12:00+0000