When trying to connect to a virtual machine console in vCenter and the error "Unable to connect to the MKS: Internal Error" is displayed. A restart of the Management Agents will likely fix the problem. This can be done from the console of the ESXi host or via ssh. If you have easy access to the console skip to the Restart Management Agents
SSH Setup to Direct Console User Interface: