you can follow this steps To solve this problem :
in your terminal type this command ssh-keygen -t ecdsa -b 521 -C "[email protected]"
you will be ask:
-"enter file in which To save the key" click enter
-enter passphrase (empty for no passphrase) click enter again
- enter same passphrase again click enter
you will a message "your public key vas been saved in /user/machine/.ssh/id_ecdsa.pub(just an example ).
-type cat (where the file was save in my case /user/machine/.ssh/id_ecdsa.pub) To see your new generate ecdsa key .copy and go to github create a new ssh (dont forget to remove the old one ) and paste it then save
in your terminal again type ssh-add (directory of your new created id_ecdsa) to add it to the list. you will see identity added : directory of your key
hope this was helpful