2180
C
142: SSH2.0 C
HAPTER
public-key-code end
Syntax
View
Parameter
Description
Related command:
Example
public-key local create
Syntax
View
Parameter
Description
C
ONFIGURATION
OMMANDS
public-key-code end
RSA key code view
None
Use the
public-key-code end
public key view and to save the configured public key.
The system verifies the key before saving it. If the key contains illegal characters,
the system displays an error message and discards the key. If the key is legal, the
system saves it.
public-key peer, public-key-code begin.
# Exit RSA key code view.
<Sysname> system-view
[Sysname] public-key peer key1
[Sysname-pkey-public-key] public-key-code begin
[Sysname-pkey-key-code]30819F300D06092A864886F70D010101050003818D003
0818902818100C0EC8014F82515F6335A0A
[Sysname-pkey-key-code]EF8F999C01EC94E5760A079BD73E4F4D97F3500EDB308
C29481B77E719D1643135877E13B1C531B4
[Sysname-pkey-key-code]FF1877A5E2E7B1FA4710DB0744F66F6600EEFE166F1B8
54E2371D5B952ADF6B80EB5F52698FCF3D6
[Sysname-pkey-key-code]1F0C2EAAD9813ECB16C5C7DC09812D4EE3E9A0B074276
FFD4AF2050BD4A9B1DDE675AC30CB020301
[Sysname-pkey-key-code]0001
[Sysname-pkey-key-code] public-key-code end
[Sysname-pkey-public-key]
public-key local create { dsa | rsa }
System view
dsa: DSA key pair.
rsa: RSA key pair.
Use the
public-key local create
Note that:
After entering this command, you will be prompted to provide the length of
■
the key pair. The length of a server/host key must be in the range 512 to 2048
command to return from public key code view to
command to create the local key pairs.
Need help?
Do you have a question about the MSR 20-20 and is the answer not in the manual?
Questions and answers