Configure instance for TELNET and SSH remote logon on a CISCO Router

Source: Internet
Author: User
Tags modulus


1. TELNET Remote logon Configuration

1. Configure the Logon account, password, and account level on the CISCO router, as shown below. The account name is abc, the password is abc123, And the account level is 15 to the highest level)


R1 # configure terminal

R1 (config) # username abc privilege 15 secret abc123

R1 (config) # end

R1 #


2. Configure the remote logon authentication mechanism for the CISCO router as follows:


R1 # configure terminal

R1 (config) # line vty 0 4

R1 (config-line) # login local

R1 (config-line) # end

R1 #


3. After completing the preceding configuration, you can log on via TELNET.


Ii. SSH remote login configuration

1. Configure the preceding two steps before configuring SSH remote logon.

2. Configure the Domain Name of the CISCO router, as shown below. The domain name is idc


R1 (config) # ip domain-name idc


3. Configure the CISCO router to generate a key. The router provides the number of key locations configured. After this configuration is complete, the router automatically starts the SSH service. You can use the show ip ssh command to view and verify the key.


R1 (config) # ip domain-name idc

R1 (config) # crypto key generate rsa

The name for the keys will 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 512 may take

A few minutes.


How many bits in the modulus [512]: 1024

% Generating 1024 bit RSA keys, keys will be non-exportable... [OK]


R1 (config )#

* Aug 13 15:08:21. 575: % SSH-5-ENABLED: SSH 1.99 has been enabled

R1 (config )#



4. Configure the CISCO router to allow remote logon through SSH, as shown in the following figure. TELNET and SSH allow remote logon. If TELNET remote logon is restricted, do not use telnet after transportinput.


R1 (config) # line vty 0 4

R1 (config-line) # transport input telnet ssh

R1 (config-line) # end

R1 #


5. After completing the preceding configuration, you can log on to the server through SSH.


Vro version: CiscoIOS Software, Linux Software (I86BI_LINUX-ADVENTERPRISEK9-M), ExperimentalVersion 12.4 (20090407: 185408)


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.