Generating and Deleting a Client RSA Key Pair

To generate a client RSA key pair with the default modulus size of 1024 bits, enter the following command.

device# configure terminal
device(config)# crypto key client generate rsa

To generate a client RSA key pair with a modulus size of 2048 bits, enter the following command.

device# configure terminal
device(config)# crypto key client generate rsa modulus 2048

To delete the RSA host key pair, enter the following command.

device# configure terminal
device(config)# crypto key client zeroize rsa
Note: The crypto key client zeroize command without additional parameters removes all RSA and DSA keys from flash memory, thereby disabling SSH.