How do you create keys for SSH in Hass.IO and where do you put them?

I I can’t log in using ssh.

But i know there is a command you can write in terminal, that you can create a new fingerprint and delete all the old once. But I can’t remember which site I saw all the commando to write them.