SSH to Red Hat CRC VM
Red Hat CRC is installed by running a pre-configured VM. In case the OpenShift 4 installation is not working as expected, like no images can be loaded from the internet, a deeper validation might be needed. For instance, to see if the VM can connect to the internet, you’d need to log on and run a ping or curl command. The Web UI is not giving this kind of possibility. Luckily, the CRC creators included an option to connect to inside the VM as a user via SSH.
The SSH key can be found in the .crc directory of the user that configured CRC. In my case, the user Id is tobias, therefore the location of the SSH files is:
Login using a password is not allowed. A SSH key is needed. The user id of the user inside the VM is named core. The complete cli command to log on is:
ssh -i /home/tobias/.crc/machines/crc/id_ecdsa core@"192.168.130.11"