3com S7906E 참조 가이드

다운로드
페이지 2327
 
1-13 
After entering public key view, you can configure the peer public key with the public-key-code begin 
and public-key-code end commands. This requires that you obtain the hexadecimal public key from 
the peer beforehand.  
Related commands: public-key-code beginpublic-key-code end.  
Examples 
# Enter public key view, specifying a public key name of key1.  
<Sysname> system-view 
[Sysname] public-key peer key1 
[Sysname-pkey-public-key] 
public-key peer import sshkey 
Syntax 
public-key peer keyname import sshkey filename 
undo public-key peer keyname 
View 
System view 
Default Level 
2: System level 
Parameters 
keyname: Public key name, a string of 1 to 64 characters. 
filename: Public key file name. For detailed information about file name, refer to File System 
Management in the System Volume. 
Description 
Use the public-key peer import sshkey command to import a peer public key from the public key file. 
Use the undo public-key peer command to remove the setting. 
After execution of this command, the system automatically transforms the public key file in SSH1, 
SSH2.0 or OpenSSH format to PKCS format, and imports the peer public key. This requires that you get 
a copy of the public key file from the peer through FTP/TFTP. 
Examples 
# Import a peer public key named key2 from public key file key.pub. 
<Sysname> system-view 
[Sysname] public-key peer key2 import sshkey key.pub 
sftp 
Syntax 
sftp server port-number ] prefer-ctos-cipher { 3des | aes128 | des  } | prefer-ctos-hmac { md5 | 
md5-96  |  sha1 | sha1-96 } | prefer-kex { dh-group-exchange  | dh-group1 | dh-group14 } | 
prefer-stoc-cipher { 3des | aes128 | des } | prefer-stoc-hmac { md5 | md5-96 sha1 | sha1-96 } ] *