< Home

hwtacacs-server shared-key

Function

The hwtacacs-server shared-key command sets a shared key for an HWTACACS server.

The undo hwtacacs-server shared-key command cancels the configuration.

By default, the HWTACACS server is not configured with any shared key.

Format

hwtacacs-server shared-key cipher key-string

undo hwtacacs-server shared-key

Parameters

Parameter Description Value

cipher

Indicates the shared key in cipher text.

-

key-string

Specifies a shared key.

The value is a case-sensitive string without question marks (?) or spaces. The key is processed as cipher text no matter whether the cipher keyword is specified. The key-string may be a plain text consisting of 1 to 255 characters or a cipher text consisting of 20 to 392 characters.

Views

HWTACACS server template view

Default Level

3: Management level

Usage Guidelines

Usage Scenario

The shared key is used to encrypt the password and generate the response authenticator.

When exchanging authentication packets with an HWTACACS server, the device uses MD5 to encrypt important data such as the password to ensure security of data transmission over the network. The device and HWTACACS server must use the same key to ensure their validity in the authentication.

Precautions

For security purposes, it is recommended that the password contains at least two types of lower-case letters, upper-case letters, numerals, and special characters, and contains at least 6 characters.

You can modify this configuration only when the HWTACACS server template is not in use.

Example

# Set the shared key of the HWTACACS server to Admin@123.

<HUAWEI> system-view
[HUAWEI] hwtacacs-server template test1
[HUAWEI-hwtacacs-test1] hwtacacs-server shared-key cipher Admin@123
Copyright © Huawei Technologies Co., Ltd.
Copyright © Huawei Technologies Co., Ltd.
< Previous topic Next topic >