How to Remove ssh rsa key

Error ssh login due to existing rsa key.

To Remove the existing rsa key, under .ssh directory
vi known_hosts
.ssh is located in /root/.ssh in openSUSE

Remove the entire entry of the old ssh-rsa, something like:
10.x.x.x ssh-rsa XXXXxxxx…….Really.long.key…

dd while in vi editor to delete the entire line.

Write and Quit – (Esc :wq)