1. Enter system view.
system-view
N/A
2. Enable copyright information display.
copyright-info enable
By default, copyright information display is enabled.
3. Enter one or multiple VTY user interface views.
user-interface vty first-number [ last-number ]
N/A
4. Enable the terminal service.
shell
Optional.
By default, terminal service is enabled.
5. Enable the user interfaces to support Telnet, SSH, or both of them.
protocol inbound { all | ssh | telnet }
Optional.
By default, both Telnet and SSH are supported.
The telnet keyword is not supported in FIPS mode.
The configuration takes effect the next time you log in.
6. Define a shortcut key for terminating tasks.
escape-key { default | character }
Optional.
By default, press Ctrl+C to terminate a task.
7. Configure the type of terminal display.
terminal type { ansi | vt100 }
Optional.
By default, the terminal display type is ANSI.
8. Set the maximum number of lines to be displayed on a screen.
screen-length screen-length
Optional.
By default, a screen displays 24 lines.
A value of 0 disables the function.
9. Set the size of command history buffer.
history-command max-size value
Optional.
By default, the buffer saves 10 history commands.
10. Set the idle-timeout timer.
idle-timeout minutes [ seconds ]
Optional.
The default idle-timeout is 10 minutes for all user interfaces.
The system automatically terminates the user's connection if there is no information interaction between the device and the user within the timeout time.
Setting idle-timeout to 0 disables the timer.
11. Specify a command to be automatically executed when a user logs in to the user interfaces.
auto-execute command command
Optional.
By default, no automatically executed command is specified.
The command auto-execute function is typically used for redirecting a Telnet user to a specific host. After executing the specified command and performing the incurred task, the system automatically disconnect the Telnet session.