ssh server algorithm kex
Use this command to configure KEX algorithms.
Use no
parameter to remove the KEX algorithms.
Command Syntax
ssh server algorithm kex KEY_NAME vrf (|management|NAME)
no ssh server algorithm kex
Parameters
KEY_NAME
Specifies the SSH encryption type as Key exchange.
curve25519-sha256
curve25519-sha256-libssh-org
diffie-hellman-group-exchange-sha1
diffie-hellman-group-exchange-sha256
diffie-hellman-group1-sha1
diffie-hellman-group14-sha1
diffie-hellman-group14-sha256
diffie-hellman-group16-sha512
diffie-hellman-group18-sha512 ecdh-sha2-nistp256 ecdh-sha2-nistp384 ecdh-sha2-nistp521
vrf management
Defines the management VRF Virtual Routing and Forwarding instance.
vrf NAME
Specify the user-defined VRF instance name.
Default
Refer to ssh server default algorithm CLI section.
Command Mode
Configure mode
Applicability
Introduced in OcNOS version 6.5.3.
Example
To configure the specific KEX algorithm, execute the following command.
OcNOS(config)#ssh server algorithm kex curve25519-sha256
OcNOS(config)#ssh server algorithm kex curve25519-sha256 vrf management
To configure the multiple KEX algorithms, execute the following command.
OcNOS#conf t Enter configuration commands, one per line. End with CNTL/Z.
OcNOS(config)#ssh server algorithm kex diffie-hellman-group-exchange-sha256 diffie-hellman-group14-sha256 ecdh-sha2-nistp256
OcNOS(config)#ssh server algorithm kex diffie-hellman-group-exchange-sha256 diffie-hellman-group14-sha256 ecdh-sha2-nistp256 vrf management
OcNOS(config)#commit OcNOS(config)#end
To unconfigure the multiple KEX algorithms, execute the following command.
OcNOS(config)#no ssh server algorithm kex diffie-hellman-group-exchange-sha256 diffie-hellman-group14-sha256
OcNOS(config)#no ssh server algorithm kex diffie-hellman-group-exchange-sha256 diffie-hellman-group14-sha256 vrf management