Scp file transfer with password authentication – H3C Technologies H3C S12500-X Series Switches User Manual
Page 215
203
287B
SCP file transfer with password authentication
508B
Network requirements
As shown in
905H
Figure 62
, Switch A acts as the SCP client, and Switch B acts as the SCP server. A user can
securely transfer files with Switch B through Switch A. Switch B uses the password authentication method
and the client 's username and password are saved on Switch B.
Figure 62 Network diagram
509B
Configuration procedure
1.
Configure the SCP server:
# Generate the RSA key pairs.
<SwitchB> system-view
[SwitchB] public-key local create rsa
The range of public key size is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...
........................++++++
...................++++++
..++++++++
............++++++++
Create the key pair successfully.
# Generate a DSA key pair.
[SwitchB] public-key local create dsa
The range of public key size is (512 ~ 2048).
If the key modulus is greater than 512, it will take a few minutes.
Press CTRL+C to abort.
Input the modulus length [default = 1024]:
Generating Keys...
.++++++++++++++++++++++++++++++++++++++++++++++++++*
........+......+.....+......................................+
...+.................+..........+...+.
Create the key pair successfully.
# Enable the SSH server function.
[SwitchB] ssh server enable
# Configure an IP address for VLAN-interface 2. The client uses this address as the destination for
SCP connection.
[SwitchB] interface vlan-interface 2
[SwitchB-Vlan-interface2] ip address 192.168.0.1 255.255.255.0
[SwitchB-Vlan-interface2] quit