Command Manual –SSH Terminal Service
Quidway S3900 Series Ethernet Switches-Release 1510
Chapter 1 SSH Terminal Service
Configuration Commands
Huawei Technologies Proprietary
1-12
Related command:
public-key-code begin
,
public-key-code end
.
Example
# Enter quidway002 public key view.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key quidway002
[Quidway-rsa-public-key]
1.1.13 rsa peer-public-key import sshkey
Syntax
rsa peer-public-key key-name import sshkey file-name
View
System view
Paramter
key-name
: Name of the public key of the client, a string in the range of 1 character to 64
characters.
file-name
: Name of the public key file (which has been loaded to the Flash in advance),
a string in the range of 1 character to 142 characters.
Description
Use the
rsa peer-public-key
import sshkey
command to transform the format of the
public key files of the client into the public key cryptography standard (PKCS) codes
and configure them automatically.
In this way, you need not configure public keys manually. After the client transmits
public key files of the RSA keys to the server through FTP/TFTP, this command can
transform the public key files to public keys and configure them automatically.
Example
# Transform the format of the public key file named abc in the client into the public key
named 123 automatically.
<Quidway> system-view
System View: return to User View with Ctrl+Z.
[Quidway] rsa peer-public-key 123 import sshkey abc