
C613-50186-01 Rev B
Command Reference for AR2050V
2492
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
ECURE
S
HELL
(SSH) C
OMMANDS
CRYPTO
KEY
PUBKEY
-
CHAIN
KNOWNHOSTS
Usage
This command adds a public key of the specified SSH server to the known host
database on the device. The key is retrieved from the server. The remote SSH server
is verified by using this public key. The user is requested to check the key is correct
before adding it to the database.
If the remote server’s host key is changed, or if the device does not have the public
key of the remote server, then SSH clients will inform the user that the public key
of the server is altered or unknown.
Examples
To add the RSA host key of the remote SSH host IPv4 address
192.0.2.11
to the
known host database, use the command:
awplus#
crypto key pubkey-chain knownhosts 192.0.2.11
To delete the second entry in the known host database, use the command:
awplus#
no crypto key pubkey-chain knownhosts 2
Examples
(VRF-lite)
To add the RSA host key of the remote SSH host IPv4 address
192.0.2.11
in VRF
red
to the known host database, use the command:
awplus#
crypto key pubkey-chain knownhosts vrf red 192.0.2.11
To delete the second entry in the known host database in VRF
red
, use the
command:
awplus#
no crypto key pubkey-chain knownhosts vrf red 2
Validation
Commands
show crypto key pubkey-chain knownhosts
Command
changes
Version 5.4.6-2.1: VRF-lite support added.