Configuration instance for Cisco router telnet and ssh telnet

Source: Internet
Author: User
Tags config modulus ssh

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

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.