Last active
January 15, 2021 00:32
-
-
Save giljr/f2a3c9ffd231937f1b90cc70539d23a3 to your computer and use it in GitHub Desktop.
CCLAB_01_B,csv
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Mode | Command | Description | |
---|---|---|---|
Router(config)# | username admin privilege 15 secret 123 | We created a local user with total privilege (level 15) | |
Router(config)# | ip domain-name labcisco.com.br | Name of the domain that will be used to generate the SSH encryption keys | |
Router(config)# | aaa new model | The authentication authorization and accounting (AAA pronounced “triple A”) method is used | |
Router(config)# | crypto key generate rsa | Generate RSA key pairs. The name for the keys will be: labcisco.com.br | |
Router(config)# | ip ssh version 2 | SSH v2 is supported by Cisco IOS platforms Use it! :) | |
Router(config)# | no ip ssh version 1 | Do not use SSH 1 :/ | |
Router(config)# | ip ssh time-out 30 | To prevent Telnet (or SSH) sessions from timing out before 30secs | |
Router(config)# | ip ssh authentication retries 3 | Specify the number of authentication-retries not to exceed 3 authentication-retries The defaults is 3 | |
Router(config)# | line vty 0 4 | Open 5 virtual interfaces for remote access | |
Router(config)# | transport input SSH | Where input transport is set to SSH | |
Router(config)# | login local | Means that authentication uses locally configured credentials using the username | |
Router(config)# | end | Return to user mode | |
- | ok | That's it! |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment