ssh
DESCRIPTION
cisco sshTRANSCRIPT
Router
R1>R1>R1>enaR1#config terminalEnter configuration commands, one per line. End with CNTL/Z.R1(config)#R1(config)#R1(config)#R1(config)#ip domain-name ccna1.comR1(config)#crypto key generate rsaThe name for the keys will be: R1.ccna1.comChoose the size of the key modulus in the range of 360 to 2048 for yourGeneral Purpose Keys. Choosing a key modulus greater than 512 may takea 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 ccnaR1(config)#R1(config)#R1(config)#R1(config)#R1(config)#username CESAR secret ccna1ciscoR1(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]: noR1(config)#R1(config)#R1(config)#R1(config)#username CESAR secret ccna1ciscoR1(config)#ip ssh version 2R1(config)#line vty 0 15R1(config-line)#transport input sshR1(config-line)#R1(config-line)#login localR1(config-line)#R1(config-line)#do wrBuilding configuration...[OK]R1(config-line)#
Switch
SW2>SW2>enableSW2#config terminalEnter configuration commands, one per line. End with CNTL/Z.SW2(config)#enable secSW2(config)#enable secret ccnaSW2(config)#ip domain-name ccna1.comSW2(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.comSW2(config)#enable secret ccnaSW2(config)#crypto key generate rsaThe name for the keys will be: SW2.ccna1.comChoose the size of the key modulus in the range of 360 to 2048 for yourGeneral Purpose Keys. Choosing a key modulus greater than 512 may takea 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 2SW2(config)#line vty 0 15SW2(config-line)#transport input sshSW2(config-line)#do wr Building configuration...[OK]SW2(config-line)#login localSW2(config-line)#do wrBuilding configuration...[OK]SW2(config-line)#