Sometimes, basic configuration are tend to forgot. This post to keep a record of basic configuration for setting up SSH on IOS router/switch.
aaa new-model
ip domain-name [your_domain_name]
enable secret [your_secret_word]
username [your_username] secret [your_secret_word]
ip ssh rsa keypair-name [any_keypair_name]