397
Password authentication enabled SFTP server configuration
example
Network requirements
As shown in
•
The switch acts as the SFTP server and uses password authentication.
•
The username and password of the client are saved on the switch.
Establish an SFTP connection between the host and the switch, so you can log in to the switch to
manage and transfer files.
Figure 111 Network diagram
Configuration procedure
1.
Configure the SFTP server:
# Generate RSA key pairs.
<Switch> system-view
[Switch] 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.
[Switch] 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.
# Generate an ECDSA key pair.
[Switch] public-key local create ecdsa secp256r1
Generating Keys...
Create the key pair successfully.
Summary of Contents for 10500 series
Page 326: ...312 No duration limit for this SA ...