502
<Sysname> system-view
[Sysname] ssh2 algorithm key-exchange dh-group1-sha1
Related commands
display ssh2 algorithm
ssh2 algorithm cipher
ssh2 algorithm mac
ssh2 algorithm public-key
ssh2 algorithm mac
Use
ssh2 algorithm mac
to specify MAC algorithms for SSH2.
Use
undo
ssh2 algorithm mac
to restore the default.
Syntax
In non-FIPS mode:
ssh2 algorithm mac
{
md5
|
md5-96
|
sha1
|
sha1-96
|
sha2-256
|
sha2-512
}
*
undo ssh2 algorithm mac
In FIPS mode:
ssh2 algorithm mac
{
sha1
|
sha1-96
|
sha2-256
|
sha2-512
}
*
undo ssh2 algorithm mac
Default
SSH2 uses the MAC algorithms
sha2-256
,
sha2-512
,
sha1
,
md5
,
sha1-96
, and
md5-96
in
descending order of priority for algorithm negotiation.
Views
System view
Predefined user roles
network-admin
mdc-admin
Parameters
md5
: Specifies the HMAC algorithm
hmac-md5
.
md5-96
: Specifies the HMAC algorithm
hmac-md5-96
.
sha1
: Specifies the HMAC algorithm
hmac-sha1
.
sha1-96
: Specifies the HMAC algorithm
hmac-sha1-96
.
sha2-256
: Specifies the HMAC algorithm
hmac-sha2-256
.
sha2-512
: Specifies the HMAC algorithm
hmac-sha2-512
.
Usage guidelines
If you specify the MAC algorithms, SSH2 uses only the specified algorithms for algorithm negotiation.
The algorithm specified earlier has a higher priority during negotiation.
Examples
# Specify the algorithm
md5
as the MAC algorithm for SSH2.
<Sysname> system-view
[Sysname] ssh2 algorithm mac md5