Cisco sdm login SSH configuration learning notes
Enable the http service
Ip http server
Enable the https service
Ip http secure-server
Configure to authenticate http access. The authenticated security database is local authentication.
Ip http authentication local
Set up a secure database locally on the router with a user name of "cisco" and a password of "cisco" with a user privilege level of 15, that is, the administrator level of the router
Username cisco privilege 15 password cisco
Enter vty
Line vty 0 4 (logical line order) is equivalent to line 2 4 (physical line order), which can be seen by show line.
Set to use local database authentication when logging in using vty
Transport input telnet
Set SSH encryption when logging in using vty
Transport input telnet ssh
Set the log space size to 51200
Logging buffered 51200 warning
To use SSH, you must configure a domain name for the router
Ip domain-name cisco.com
Allow SSH to log in
Transport input ssh
Generate router public and private key pairs
Crypto key generate rsa