HP 5920 series Fundamentals Configuration Manual page 37

Hide thumbs Also See for 5920 series:
Table of Contents

Advertisement

Configuring common VTY line settings
For a VTY line, you can specify a command that is to be automatically executed when a user logs in.
After executing the specified command and performing the incurred task, the system automatically
disconnects the Telnet session. Before you configure this function and save the configuration, make sure
you can access the CLI through a different user line.
Typically, you configure the auto-execute command telnet X.X.X.X command on the device so the device
redirects a Telnet user to the host at X.X.X.X. In this case, the connection to the current device is closed
when the user terminates the Telnet connection to X.X.X.X.
To configure common settings for VTY lines:
Step
1.
Enter system view.
2.
Enter VTY line view or
class view.
3.
Enable the terminal
service.
4.
Specify the protocols
for the user lines to
support.
5.
Define a shortcut key
for terminating tasks.
6.
Specify the terminal
display type.
7.
Set the maximum
number of lines to be
displayed on a screen.
Command
system-view
To enter VTY line view:
line vty first-number
[ last-number ]
To enter VTY line class
view:
line class vty
shell
protocol inbound { all | ssh
| telnet }
escape-key { character |
default }
terminal type { ansi |
vt100 }
screen-length screen-length
29
Remarks
N/A
Use either command.
A setting in user line view is applied only to the
user line. A setting in user line class view is
applied to all user lines of the class.
A non-default setting in either view takes
precedence over a default setting in the other
view. A non-default setting in user line view takes
precedence over a non-default setting in user line
class view.
A setting in user line view takes effect
immediately and affects the online user. A setting
in user line class view does not affect online
users and takes effect only for users who log in
after the configuration is completed.
By default, terminal service is enabled.
By default, both Telnet and SSH are supported.
This configuration is effective only for users who
log in to the user lines after the configuration is
completed.
In VTY line view, this command is associated
with the authentication-mode command:
If the setting of either command is not the
default in VTY line view, the setting of the
other command in VTY line view takes effect.
If the settings of both commands are the
defaults in VTY line view, the settings of the
commands in VTY line class view take effect.
By default, pressing Ctrl+C terminates a task.
By default, the terminal display type is ANSI.
By default, up to 24 lines is displayed on a
screen.
A value of 0 disables the function.

Hide quick links:

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900 series

Table of Contents