374
Figure 108 SFTP client interface
Publickey authentication enabled SFTP client configuration
example
Network requirements
As shown in Figure 109:
• You can log in to Switch B through the SFTP client that runs on Switch A.
• After login, you are assigned the user role network-admin to execute file management and
transfer operations.
• Switch B acts as the SFTP server and uses publickey authentication and the RSA public key
algorithm.
Figure 109 Network diagram
Configuration procedure
In the server configuration, the client's host public key is required. Generate RSA key pairs on the
client before configuring the SFTP server.
1. Configure the SFTP client:
# Assign an IP address to VLAN-interface 2.
<SwitchA> system-view
[SwitchA] interface vlan-interface 2
[SwitchA-Vlan-interface2] ip address 192.168.0.2 255.255.255.0
[SwitchA-Vlan-interface2] quit
# Generate RSA key pairs.
SFTP serverSFTP client
Switch BSwitch A
Vlan-int2
192.168.0.2/24
Vlan-int2
192.
168.0.1/24