Public-Key Peer Import Sshkey; Sftp - H3C MSR 20-20 Command Reference Manual

Msr 20/30/50 series routers
Hide thumbs Also See for MSR 20-20:
Table of Contents

Advertisement

public-key peer import sshkey

Syntax
View
Parameter
Description
Example

sftp

Syntax
View
Parameter
public-key peer keyname import sshkey filename
undo public-key peer keyname
System view
keyname: Public key name, a string of 1 to 64 characters.
filename: Public key file name. The value range varies by device models.
Use the
public-key peer import sshkey
from the public key file.
Use the
undo public-key peer import sshkey
setting.
After execution of this command, the system automatically transforms the public
key file in SSH1, SSH2 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.
# 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 server [ port-number ] [ identity-key { dsa | rsa } | 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 } ] *
User view
server: IPv4 address or name of the server, a string of 1 to 20 characters.
port-number: Port number of the server, in the range 0 to 65535. The default is
22.
identity-key: Specifies the algorithm for publickey authentication, either dsa or
rsa. The default is dsa.
prefer-ctos-cipher: Preferred encryption algorithm from client to server, defaulted
to aes128.
3des: Encryption algorithm 3des-cbc.
aes128: Encryption algorithm aes128-cbc.
command to import a peer public key
command to remove the
2185

Advertisement

Table of Contents
loading

This manual is also suitable for:

Msr 20-21Msr 30-16Msr 30-20Msr 30-40Msr 30-60Msr 50 ... Show all

Table of Contents