To generate SSH key pairs and save them on the local server, use the following CLI command:
(configure)# ssh keygen [{rsa | dsa}] [key-size {768 | 1024 | 2048}]