2.1.21. ip ssh

Syntax

ip ssh (v1|v2|all)

no ip ssh (v1|v2|all)

Parameter


v1 Generate/Delete version 1 key files v2 Generate/Delete version 2 key files all Generate/Delete version 1 and 2 key files


Default

Version 2 key files will be generated by default

Mode

Global Configuration

Usage

Use ip ssh command to generate the key files for ssh connection. Use no form to delete key files. SSH connection may not connect if no any v1 or v2 ssh key files exist.

Example

This example shows how to delete and re-generate ssh version 2 key files.

Switch(config)# no ip ssh v2
Switch(config)# do show flash
File Name File Size Modified
-------------- ---------------- --------------
startup-config 1913 2000-01-01 08:29:10
rsa1 976 2000-01-05 23:28:38
ssl_cert 875 2000-01-05 23:03:20
image0 (active) 4856825 2014-04-02 15:17:34

Switch(config)# ip ssh v2
Generating a SSHv2 default RSA Key.
This may take a few minutes, depending on the key size.
Generating a SSHv2 default DSA Key.
This may take a few minutes, depending on the key size.

Switch(config)# do show flash
File Name File Size Modified
-------------- ---------------- --------------
startup-config 1913 2000-01-01 08:29:10
rsa1 976 2000-01-05 23:28:38
rsa2 1675 2000-01-05 23:34:43
dsa2 668 2000-01-05 23:34:58
ssl_cert 875 2000-01-05 23:03:20
image0 (active) 4856825 2014-04-02 15:17:34