Sftp Configuration Examples; Password Authentication Enabled Sftp Server Configuration Example - HP 5920 Series Configuration Manual

Hide thumbs Also See for 5920 Series:
Table of Contents

Advertisement

[SwitchB-luser-manage-client002] quit
Establish an SSH connection to the Stelnet server (192.168.1.40).
3.
<SwitchA> ssh2 192.168.1.40
Username: client002
The server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:n
You can log in to Router B successfully for the first time without configuring its host public key,
because the client supports the first authentication by default.

SFTP configuration examples

This section provides examples of configuring SFTP on switches.
Password authentication enabled SFTP server configuration
example
Network requirements
As shown in
assigned the user role network-admin to execute file management and transfer operations. The switch
acts as the SFTP server and uses password authentication. The username and password of the client are
saved on the switch.
Figure 57 Network diagram
Configuration procedure
Configure the SFTP server:
1.
# Generate the 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...
........................++++++
...................++++++
..++++++++
............++++++++
# 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.
Figure
57, you can log in to the switch through the SFTP client that runs on the host and are
179

Advertisement

Table of Contents
loading

This manual is also suitable for:

5900 series

Table of Contents