You are on page 1of 3

Router

R1>
R1>
R1>ena
R1#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
R1(config)#
R1(config)#
R1(config)#
R1(config)#ip domain-name ccna1.com
R1(config)#crypto key generate rsa
The name for the keys will be: R1.ccna1.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
R1(config)#enable secre
*mar 1 0:42:24.699: %SSH-5-ENABLED: SSH 1.99 has been enabled
R1(config)#enable secret ccna
R1(config)#
R1(config)#
R1(config)#
R1(config)#
R1(config)#username CESAR secret ccna1cisco
R1(config)#crypto key generate rsa
% You already have RSA keys defined named R1.ccna1.com .
% You already have RSA keys defined named R1.ccna1.com .
% You already have RSA keys defined named R1.ccna1.com .
% You already have RSA keys defined named R1.ccna1.com .
% Do you really want to replace them? [yes/no]: crypto key generate rsa
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]:
% Please answer 'yes' or 'no'.

% Do you really want to replace them? [yes/no]:


% Please answer 'yes' or 'no'.
% Do you really want to replace them? [yes/no]: no
R1(config)#
R1(config)#
R1(config)#
R1(config)#username CESAR secret ccna1cisco
R1(config)#ip ssh version 2
R1(config)#line vty 0 15
R1(config-line)#transport input ssh
R1(config-line)#
R1(config-line)#login local
R1(config-line)#
R1(config-line)#do wr
Building configuration...
[OK]
R1(config-line)#

Switch
SW2>
SW2>enable
SW2#config terminal
Enter configuration commands, one per line. End with CNTL/Z.
SW2(config)#enable sec
SW2(config)#enable secret ccna
SW2(config)#ip domain-name ccna1.com
SW2(config)#crypto ket
SW2(config)#crypto ket generate rsa
^
% Invalid input detected at '^' marker.
SW2(config)#crypto ket generate rsa
^
% Invalid input detected at '^' marker.
SW2(config)#ip domain-name ccna1.com
SW2(config)#enable secret ccna
SW2(config)#crypto key generate rsa
The name for the keys will be: SW2.ccna1.com
Choose the size of the key modulus in the range of 360 to 2048 for your
General Purpose Keys. Choosing a key modulus greater than 512 may take
a few minutes.
How many bits in the modulus [512]: 1024
% Generating 1024 bit RSA keys, keys will be non-exportable...[OK]
SW2(config)#username CESAR secret ccna1cisco

*mar 1 0:58:0.719: %SSH-5-ENABLED: SSH 1.99 has been enabled


SW2(config)#ip ssh version 2
SW2(config)#line vty 0 15
SW2(config-line)#transport input ssh
SW2(config-line)#do wr
Building configuration...
[OK]
SW2(config-line)#login local
SW2(config-line)#do wr
Building configuration...
[OK]
SW2(config-line)#

You might also like