(config)# ip domain-name domain name (config)# crypto key
generate rsa <– Make a RSA key. How many bit in the modulus[512]:
1024 <– Use 1024 bit to encrypt(default 512)
Enable SSH
(config)# ip ssh version [1 | 2] (config)# ip ssh {timeout
seconds | authentication-retries number} (config)#
line vty line_number [ending_line_number]
(config-line)# login ssh (config-line)# transport input ssh <– Enable
ssh