HP 6125XLG R2306-HP 6125XLG Blade Switch Fundamentals Configuration Guide - Page 36

Configuring common VTY user interface settings,

Page 36 highlights

Figure 10 Scheme authentication interface for Telnet login Configuring common VTY user interface settings For a VTY user interface, 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 interface. 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 user interfaces: Step 1. Enter system view. 2. Enter one or multiple VTY user interface views. 3. Enable the terminal service. Command system-view user-interface vty first-number [ last-number ] shell Remarks N/A N/A By default, terminal service is enabled. By default, both Telnet and SSH are supported. 4. Specify the protocols for the user interfaces protocol inbound { all | ssh | This configuration is effective only for users who to support. telnet } log in to the user interfaces after the configuration is completed. 5. Define a shortcut key for terminating tasks. 6. Specify the terminal display type. escape-key { character | default } By default, pressing Ctrl+C terminates a task. terminal type { ansi | vt100 } By default, the terminal display type is ANSI. 7. Set the maximum number of lines to be screen-length screen-length displayed on a screen. 8. Set the size of command history buffer. history-command max-size value By default, up to 24 lines is displayed on a screen. A value of 0 disables the function. By default, the buffer saves 10 history commands. 29

  • 1
  • 2
  • 3
  • 4
  • 5
  • 6
  • 7
  • 8
  • 9
  • 10
  • 11
  • 12
  • 13
  • 14
  • 15
  • 16
  • 17
  • 18
  • 19
  • 20
  • 21
  • 22
  • 23
  • 24
  • 25
  • 26
  • 27
  • 28
  • 29
  • 30
  • 31
  • 32
  • 33
  • 34
  • 35
  • 36
  • 37
  • 38
  • 39
  • 40
  • 41
  • 42
  • 43
  • 44
  • 45
  • 46
  • 47
  • 48
  • 49
  • 50
  • 51
  • 52
  • 53
  • 54
  • 55
  • 56
  • 57
  • 58
  • 59
  • 60
  • 61
  • 62
  • 63
  • 64
  • 65
  • 66
  • 67
  • 68
  • 69
  • 70
  • 71
  • 72
  • 73
  • 74
  • 75
  • 76
  • 77
  • 78
  • 79
  • 80
  • 81
  • 82
  • 83
  • 84
  • 85
  • 86
  • 87
  • 88
  • 89
  • 90
  • 91
  • 92
  • 93
  • 94
  • 95
  • 96
  • 97
  • 98
  • 99
  • 100
  • 101
  • 102
  • 103
  • 104
  • 105
  • 106
  • 107
  • 108
  • 109
  • 110
  • 111
  • 112
  • 113
  • 114
  • 115
  • 116
  • 117
  • 118
  • 119
  • 120
  • 121
  • 122
  • 123
  • 124
  • 125
  • 126
  • 127
  • 128
  • 129
  • 130
  • 131
  • 132
  • 133
  • 134
  • 135
  • 136
  • 137
  • 138
  • 139
  • 140
  • 141
  • 142
  • 143
  • 144
  • 145
  • 146
  • 147
  • 148
  • 149
  • 150
  • 151
  • 152
  • 153
  • 154
  • 155

29
Figure 10
Scheme authentication interface for Telnet login
Configuring common VTY user interface settings
For a VTY user interface, 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 interface.
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 user interfaces:
Step
Command
Remarks
1.
Enter system view.
system-view
N/A
2.
Enter one or multiple
VTY user interface
views.
user-interface vty
first
-
number
[
last-number
]
N/A
3.
Enable the terminal
service.
shell
By default, terminal service is enabled.
4.
Specify the protocols
for
the user interfaces
to support.
protocol inbound
{
all
|
ssh
|
telnet
}
By default, both Telnet and SSH are supported.
This configuration is effective only for users who
log in to the user interfaces after the
configuration is completed.
5.
Define a shortcut key
for terminating tasks.
escape-key
{
character
|
default
}
By default, pressing
Ctrl+C
terminates a task.
6.
Specify the terminal
display type.
terminal type
{
ansi | vt100
}
By default, the terminal display type is ANSI.
7.
Set the maximum
number of lines to be
displayed on a screen.
screen-length
screen-length
By default, up to 24 lines is displayed on a
screen.
A value of 0 disables the function.
8.
Set the size of
command history
buffer.
history-command max-size
value
By default, the buffer saves 10 history
commands.