Problem:
Configure SSH in Cisco. Make SSH the default environment for terminal lines.
Solution:
cisco> enable
cisco# clock set 17:10:00 28 Aug 2009
cisco# configure terminal
cisco(config)# ip domain name test.dom
cisco(config)# crypto key generate rsa
cisco(config)# service password-encryption
cisco(config)# username user privilege 15 password 7 Pa$$w0rd
cisco(config)# aaa new-model
cisco(config)# line vty 0 4
cisco(config-line)# transport input ssh
cisco(config-line)# logging synchronous
cisco(config-line)# exec-timeout 60 0
cisco(config-line)# exit
cisco(config)# exit
cisco# copy running-config startup-config
Explanation:
- Enter privileged mode
- Set the exact time for key generation
- Enter configuration mode
- Specify the domain name (necessary for key generation)
- Generate an RSA key (you will need to select a key size)
- Activate password encryption in the configuration file
- We start the user with the user name, password Pa $$ w0rd and privilege level 15
- Activate the AAA protocol. (at least one user must be logged in before activation of AAA)
- We enter the configuration mode of the terminal lines from 0 to 4
- Specify the default SSH network access medium
- Activate automatic line raising after the system responds to the changes made
- Specify the timeout time before the automatic closing of the SSH session in 60 minutes
- Exit the terminal line configuration mode
- Exit configuration mode
- Save the configuration file to non-volatile memory
So we did it guys!