code: def _get_ssh_public_key(self):
          
          key = ipa_utils.generate_public_ssh_key(self.ssh_private_key_file)
          return '{user}:{key} {user}'.format(
              user=self.ssh_user,
              key=key.decode()
          )
docs: Generate SSH public key from private key.