334
Configuration procedure
1.
Configure the SFTP client.
# Configure an IP address for interface GigabitEthernet 1/0/1.
<RouterA> system-view
[RouterA] interface GigabitEthernet 1/0/1
[RouterA-GigabitEthernet1/0/1] ip address 192.168.0.2 255.255.255.0
[RouterA-GigabitEthernet1/0/1] quit
# Generate the RSA key pairs.
[RouterA] public-key local create rsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
++++++++
++++++++++++++
+++++
++++++++
# Export the host public key to file
pubkey
.
[RouterA] public-key local export rsa ssh2 pubkey
[RouterA] quit
Then, you must transmit the public key file to the server through FTP or TFTP.
2.
Configure the SFTP server.
# Generate the RSA key pairs.
<RouterB> system-view
[RouterB] public-key local create rsa
The range of public key size is (512 ~ 2048).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
++++++++
++++++++++++++
+++++
++++++++