C613-50170-01 Rev B
Command Reference for x510 Series
2698
AlliedWare Plus™ Operating System - Version 5.4.7-1.x
S
ECURE
S
HELL
(SSH) C
OMMANDS
CRYPTO
KEY
PUBKEY
-
CHAIN
KNOWNHOSTS
crypto key pubkey-chain knownhosts
Overview
This command adds a public key of the specified SSH server to the known host
database on your device. The SSH client on your device uses this public key to
verify the remote SSH server.
The key is retrieved from the server. Before adding a key to this database, check
that the key sent to you is correct.
If the server’s key changes, or if your SSH client does not have the public key of the
remote SSH server, then your SSH client will inform you that the public key of the
server is unknown or altered.
The
no
variant of this command deletes the public key of the specified SSH server
from the known host database on your device.
Syntax
crypto key pubkey-chain knownhosts [ip|ipv6] <
hostname>
[rsa|dsa|rsa1]
no crypto key pubkey-chain knownhosts <
1-65535
>
Default
If no cryptography algorithm is specified, then
rsa
is used as the default
cryptography algorithm.
Mode
Privilege Exec
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.
Parameter
Description
ip
Keyword used prior to specifying an IPv4 address
ipv6
Keyword used prior to specifying an IPv6 address
<
hostname>
IPv4/IPv6 address or hostname of a remote server in the
format
a.b.c.d
for an IPv4 address, or in the format
x:x::x:x
for an IPv6 address.
rsa
Specify the RSA public key of the server to be added to the
known host database.
dsa
Specify the DSA public key of the server to be added to the
known host database.
rsa1
Specify the SSHv1 public key of the server to be added to the
know host database.
<
1-65535
>
Specify a key identifier when removing a key using the
no
parameter.