R3303-HP HSR6800 Routers Security Configuration Guide

336
Figure 111 SFTP client interface
Publickey authentication enabled SFTP client configuration
example
Network requirements
As shown in Figure 112, you can log in to Router B through the SFTP client that runs on Router A. Router
B acts as the SFTP server, adopting publickey authentication and the RSA public key algorithm.
Figure 112 Network diagram
Configuration considerations
In the server configuration, the client public key is required. Use the client software to generate an RSA
key pair on the client before configuring the SFTP server.
Configuration procedure
1. Configure the SFTP client:
# Configure an IP address for interface GigabitEthernet 3/0/1.
<RouterA> system-view
[RouterA] interface gigabitethernet 3/0/1
[RouterA-GigabitEthernet3/0/1] ip address 192.168.0.2 255.255.255.0
[RouterA-GigabitEthernet3/0/1] quit
# Generate the RSA key pairs.
[RouterA] public-key local create rsa