Embed presentation
Downloaded 28 times


![Configuring SSH on switch:
R1>enable
R1#config t
Router(config)#hos
Router(config)#hostname R1
R1(config)#ip do
R1(config)#ip domain-n
R1(config)#ip domain-n
R1(config)#crypto key
R1(config)#crypto key gen
R1(config)#crypto key generate rs
R1(config)#crypto key generate rsa gen
R1(config)#crypto key generate rsa general-keys mo
R1(config)#crypto key generate rsa general-keys modulus 768
% The key modulus size is 768 bits
% Generating 768 bit RSA keys, keys will be non-exportable...[OK]
*Mar 1 08:45:37.633: %SSH-5-ENABLED: SSH 1.99 has been enabled](https://image.slidesharecdn.com/configuringsshonswitch-120106014858-phpapp01/75/How-to-configure-SSH-on-Cisco-switch-3-2048.jpg)

This document provides instructions for configuring SSH on a switch. It shows the commands used to generate an RSA key pair with a 768-bit modulus for SSH, set the SSH timeout to 60 seconds and authentication retry limit to 3, create a local user with username "admin" and password "123", and configure the VTY lines to use SSH for login authentication.


![Configuring SSH on switch:
R1>enable
R1#config t
Router(config)#hos
Router(config)#hostname R1
R1(config)#ip do
R1(config)#ip domain-n
R1(config)#ip domain-n
R1(config)#crypto key
R1(config)#crypto key gen
R1(config)#crypto key generate rs
R1(config)#crypto key generate rsa gen
R1(config)#crypto key generate rsa general-keys mo
R1(config)#crypto key generate rsa general-keys modulus 768
% The key modulus size is 768 bits
% Generating 768 bit RSA keys, keys will be non-exportable...[OK]
*Mar 1 08:45:37.633: %SSH-5-ENABLED: SSH 1.99 has been enabled](https://image.slidesharecdn.com/configuringsshonswitch-120106014858-phpapp01/75/How-to-configure-SSH-on-Cisco-switch-3-2048.jpg)
