No relevant resource is found in the selected language.

This site uses cookies. By continuing to browse the site you are agreeing to our use of cookies. Read our privacy policy>Search

Reminder

To have a better experience, please upgrade your IE browser.

upgrade

Configuration Guide - Basic Configuration

S1720, S2700, S5700, and S6720 V200R011C10

This document describes methods to use command line interface and to log in to the device, file operations, and system startup configurations.
Rate and give feedback:
Huawei uses machine translation combined with human proofreading to translate this document to different languages in order to help you better understand the content of this document. Note: Even the most advanced machine translation cannot match the quality of professional translators. Huawei shall not bear any responsibility for translation accuracy and it is recommended that you refer to the English document (a link for which has been provided).
(Optional) Configuring Attributes for a VTY User Interface

(Optional) Configuring Attributes for a VTY User Interface

Context

You can configure attributes for a VTY user interface to control Telnet login and screen display. The attributes of a VTY user interface include the maximum number of VTY user interfaces, timeout period of a user connection, number of rows and columns displayed on a terminal screen, and buffer size for historical commands.

Procedure

  1. Run system-view

    The system view is displayed.

  2. Run user-interface maximum-vty number

    The maximum number of VTY user interfaces is set. The value determines the number of users that can concurrently log in to the device using Telnet or STelnet.

    By default, the maximum number of VTY user interfaces is 5.

    NOTE:
    • When the maximum number of VTY user interfaces is set to 0, no user (including Telnet and SSH users) can log in to the device through the VTY user interface, and web users cannot log in to the device through the web system either.
    • If the configured maximum number is less than the current maximum number of online users, the system forces users who do not pass the authentication and occupy the VTY channel for longer than 15 seconds to log out. New users can log in to the device through the VTY user interface.
    • If the configured maximum number is greater than the current maximum number of online users, you need to configure an authentication mode for additional user interfaces.

  3. Run user-interface vty first-ui-number [ last-ui-number ]

    The VTY user interface view is displayed.

  4. Run shell

    The VTY terminal service is enabled.

    By default, all VTY terminal services are enabled. If you disable the terminal service of a VTY user interface, users cannot log in through the VTY user interface.

  5. Run idle-timeout minutes [ seconds ]

    A timeout period is set for a user connection.

    If a connection remains idle for the specified timeout period, the system automatically terminates the connection after the timeout period expires, which conserves system resources.

    By default, the timeout period is 10 minutes.
    NOTE:

    If you set the timeout period of a terminal connection to 0 or too long, the terminal remains logged in to a device, which is a potential security risk. It is recommended that you run the lock command to lock the connection.

  6. Run screen-length screen-length [ temporary ]

    The number of rows displayed on a terminal screen is set.

    If you specify temporary in the command, the configured value takes effect only on the current VTY user interface but does not take effect on the next login on the same user interface or login on other VTY user interfaces.

    The default number of rows is 24.

  7. Run screen-width screen-width

    The number of columns displayed on a terminal screen is set.

    The default number of columns is 80. Each character is a column.

    NOTE:

    This command is valid only for information displayed by the display interface description command.

  8. Run history-command max-size size-value

    A buffer size is set for historical commands.

    The default buffer size is 10, that is, a maximum of 10 historical commands can be buffered.

Translation
Download
Updated: 2019-10-21

Document ID: EDOC1000178166

Views: 255179

Downloads: 1941

Average rating:
This Document Applies to these Products
Related Version
Related Documents
Share
Previous Next