Here’s a video guide of the same steps
Step one ensure it already has a hostname and domain set
en conf t hostname <hostname> ip domain-name <domain>
Then create the required key
crypto key generate rsa 2048
Then setup the input line
line vty 0 15 transport input ssh local login exit
Then create a user
username <username> secret <password>
don’t forget to save
copy run start