code: def _get_user_data(self):
          
          key = ipa_utils.generate_public_ssh_key(
              self.ssh_private_key_file
          ).decode()
          script = BASH_SSH_SCRIPT.format(user=self.ssh_user, key=key)
          return script
docs: Return formatted bash script string.
  
          The public ssh key is added by cloud init to the instance based on
          the ssh user and private key file.