...
If you’re looking to give users SSH access to an instance, you will need to append their SSH public key (which should start with “ssh-rsa” followed by a long string) to the file /home/ubuntu/.ssh/authorized_keys (make sure that you append to the file, DO NOT overwrite what is there already or you will lose access to the instance yourself).
...