Secure Shell Commands
©2008 Allied Telesis Inc. All rights reserved.
Software Version 5.2.1
AlliedWare Plus
TM
Operating System Software Reference C613-50003-00 REV E
45.7
crypto key pubkey-chain knownhosts
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 form deletes the public key of the specified SSH server from the known host database
on your device.
Syntax
crypto key pubkey-chain knownhosts
<hostname>
[
dsa
|
rsa
|
rsa1
]
no crypto key pubkey-chain knownhosts
<1-65535>
Mode
Configure mode
Examples
To add the RSA host key of the remote SSH host "172.16.23.1" to the known host database,
use the command:
awplus(config)#
crypto key pubkey-chain knownhosts 172.16.23.1
To delete the second entry in the known host database, use the command:
awplus#
no crypto key pubkey-chain knownhosts 2
Related Commands
show crypto key pubkey-chain knownhosts
Parameters
Description
<hostname>
IP address or hostname of a remote SSH server. Valid characters are all
numbers, letters, and the underscore and full stop symbols.
dsa
or
rsa
or
rsa1
The algorithm type of the SSH server’s public key.
Default:
rsa
dsa
Adds a DSA public key.
rsa
Adds an RSA public key for SSH version 2 connections.
rsa1
Adds an RSA public key for SSH version 1 connections.
<1-65535>
The key ID number of the key as shown in the known host database.
Specify the key ID to delete a key.