Before enabling SSH, make sure we configured hostname and domain name properly. This will be used to store the name of the RSA key pair generated. All the configurations are to be done in Global config mode.
hostname Router1 ip domain name ds.myorganization.inChange hostname and 'ds.myorganization.in' domain name to your organization domain name. Now generate the RSA keys for SSH
crypto key generate rsaThis will ask the number of bits required for modulus function. Default is 512 bits but if we want to enable SSH version 2, bits should be more than 768. So, better keep 1024 bits.