beautypg.com

Allied Telesis AT-S62 User Manual

Page 593

background image

AT-S62 Management Software Command Line Interface User’s Guide

Section VII: Management Security

593

key. This parameter should be used only when importing a key and not
when exporting a key. The description will appear next to the key when
you view the key database. Descriptions can help you identify the different
keys stored in the switch.

The FORMAT parameter specifies the format of the key, which can be
either Secure Shell format (SSH version 1 or 2) or hexadecimal format
(HEX). The FORMAT parameter must be specified when importing or
exporting keys. The default is HEX.

Syntax 2 Examples

This example exports a public key from the key database to the file
system. The example assumes that the ID of the key pair with the public
key to be exported is 12 and that you want to store the key as a file called
“public12.key” in the file system. It specifies the format as SSH version 1
and the type as RSA:

create enco key=12 type=rsa file=public12.key format=ssh

This example imports a public key from the file system to the key
database. It assumes that the name of the file containing the public key is
swpub24.key and that the key is to be given the ID number 6 in the key
database. It gives the key the description “Switch 24 public key.” The
format is SSH version 2 and the type is RSA:

create enco key=6 type=rsa description="Switch 24 public
key" file=swpub24.key format=ssh2