For this - you need to use the private key located at ~/.crc/machines/crc/id_ecdsa:
cd ~/.crc/machines/crc/ ls -la # to list all files including keys ssh -i id_ecdsa core@$(crc ip)
sudo -i