Telnet remote Login Configuration
1, configure Cisco router login account, password, account level, as shown below, account name ABC, password for abc123, account level of 15 (highest level)
R1#configure Terminal
R1 (config) #username ABC privilege secret abc123
R1 (config) #end
r1#
2, configure the Cisco router remote login authentication mechanism, as shown below, configure the router local authentication
R1#configure Terminal
R1 (config) #line vty 0 4
R1 (config-line) #login Local
R1 (Config-line) #end
r1#
3, complete the above configuration, you can achieve Telnet login
Second, SSH remote login configuration
1, configure the SSH remote login before, you need to configure the above two steps
2, configure the Cisco router's domain name, as shown below, the domain name is IDC
R1 (config) #ip domain-name IDC
More Wonderful content: http://www.bianceng.cnhttp://www.bianceng.cn/Network/lyjs/
3, configure Cisco router generation key, routers provide the number of configured key, after the completion of this configuration, the router will automatically start the SSH service, you can use show ip SSH command to view authentication
R1 (config) #ip domain-name IDC
R1 (config) #crypto key generate RSA
The name for the keys to BE:R1.IDC
Choose the size of the key modulus in the range of 360 to 2048 foryour
General purpose keys.choosing A key modulus greater than the May take
A few minutes.
How many bits in the modulus [512]: 1024
% generating 1024 bit RSA keys, keys would be non-exportable ... [OK]
R1 (config) #
*aug 15:08:21.575:%ssh-5-enabled:ssh 1.99 has been ENABLED
R1 (config) #
4, configure Cisco routers allow remote logins through SSH, as shown below, Telnet and SSH allow remote logins, if you restrict Telnet remote logins, then transportinput do not take telnet.
R1 (config) #line vty 0 4
R1 (config-line) #transport input telnet ssh
R1 (Config-line) #end
r1#
5, complete the above configuration, you can achieve SSH login
Router version information: Ciscoios Software, Linux Software (i86bi_linux-adventerprisek9-m), Experimentalversion 12.4 (20,090,407:185,408)
This article is from the "Qirui" blog, please be sure to keep this source http://qirui.blog.51cto.com/845978/1272594