How to configure SSH version 2?

To configure ssh version 2 run below commands on cisco router or switch.

#ip domain-name abc

#crypto key generate rsa

Enter value more than 786