java – Adding new SSH key in Github is triggering key is invalid error

I’m working through a LinkedIn Learning exercise called “Eclipse Essential Training” and have arrived to the portion of the training where an SSH key has to be generated in Eclipse and then added to Github. I’ve installed Eclipse and am using my Github account, but keep getting the following error in Github when attempting to add “New SSH key”, which is found under “Personal Settings” > “SSH and GPG Keys”:

Key is invalid. It must begin with ‘ssh-rsa’, ‘ecdsa-sha2-nistp256’, ‘ecdsa-sha2-nistp384’, ‘ecdsa-sha2-nistp521’, ‘ssh-ed25519’. Check that you’re copying the public half of the key.

In the video, the trainer’s key starts with ssh-dss, and so does mine, but the error message indicates it must begin with one of those from the error message above. I checked my Github account thoroughly, thinking that perhaps there’s a setting that’s amiss, but I don’t see where anything is configured incorrectly. Any ideas what I’m missing?