def _get_user_data(self):
key = ipa_utils.generate_public_ssh_key(<EOL>self.ssh_private_key_file<EOL>).decode()<EOL>script = BASH_SSH_SCRIPT.format(user=self.ssh_user, key=key)<EOL>return script<EOL>
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.