ip ssh crypto key generate

This topic explains the commands that generate a new RSA key for SSH or delete the existing key.

Syntax

CODE
ip ssh crypto key generate rsa
no ip ssh crypto key

Default

A default RSA key exists.

Mode

Privileged EXEC

Usage

Use the ip ssh crypto key generate rsa command to generate a new RSA key or replace the existing RSA key.

Use the no ip ssh crypto key command to delete the existing RSA key.

This process may take a few minutes.

Example

This example shows how to generate a new RSA key:

CODE
Switch# ip ssh crypto key generate rsa