You are on page 1of 1

Router>enable

Router#
Router#configure terminal
Router(config)#hostname R-1
R-1(config)#enable secret alkhoz
R-1(config)#line vty 0 3
R-1(config-line)#password alkhoz
R-1(config-line)#ip domain-name smk.edu
R-1(config)#username smk password edu
R-1(config)#crypto key generate rsa
The name for the keys will be: R-1.smk.edu
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]

R-1(config)#ip ssh version 2


*Mar 1 0:4:18.717: %SSH-5-ENABLED: SSH 1.99 has been enabled
R-1(config)#line vty 0 3
R-1(config-line)#exec-timeout 10
R-1(config-line)#logging synchronous
R-1(config-line)#transport input ssh
R-1(config-line)#exit
R-1(config)#service password-encryption
R-1(config)#do wr
Building configuration...
[OK]
R-1(config)#exit
R-1#
%SYS-5-CONFIG_I: Configured from console by console
exit

You might also like