Configuring SSH in Cisco: step by step manual

Configuring SSH in Cisco: step by step manual
Андрей Васенин

Андрей Васенин

Автор статьи. Сфера интересов: ИТ-специалист (программирование, администрирование, DBA). Кандидат экономических наук. Подробнее .

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:

  1. Enter privileged mode
  2. Set the exact time for key generation
  3.  Enter configuration mode
  4. Specify the domain name (necessary for key generation)
  5. Generate an RSA key (you will need to select a key size)
  6. Activate password encryption in the configuration file
  7. We start the user with the user name, password Pa $$ w0rd and privilege level 15
  8. Activate the AAA protocol. (at least one user must be logged in before activation of AAA)
  9. We enter the configuration mode of the terminal lines from 0 to 4
  10. Specify the default SSH network access medium
  11. Activate automatic line raising after the system responds to the changes made
  12. Specify the timeout time before the automatic closing of the SSH session in 60 minutes
  13. Exit the terminal line configuration mode
  14. Exit configuration mode
  15. Save the configuration file to non-volatile memory

So we did it guys!

Вас заинтересует / Intresting for you:

Cisco Discovery Protocol (CDP)...
Cisco Discovery Protocol (CDP)... 1009 views Валерий Павлюков Sat, 05 Feb 2022, 17:35:12
Cisco ASA 5500-X: Reimaging Es...
Cisco ASA 5500-X: Reimaging Es... 3243 views Андрей Волков Sun, 10 Nov 2019, 14:34:36
Cisco: Shortcuts for Entering ...
Cisco: Shortcuts for Entering ... 1648 views Андрей Волков Wed, 17 Feb 2021, 15:59:18
Cisco: Resetting Switch Config...
Cisco: Resetting Switch Config... 1713 views Андрей Волков Mon, 15 Feb 2021, 19:13:09
Comments (0)
There are no comments posted here yet
Leave your comments
Posting as Guest
×
Suggested Locations