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

Routing
Table of Contents

Advertisement

[SwitchB] ssh user client002 service-type stelnet authentication-type publickey
assign publickey SwitchKey
Establish a connection to the Stelnet server:
3.
# Establish an SSH connection to the Stelnet server (192.168.1.40).
<SwitchA> ssh2 192.168.1.40
Username: client002
Trying 192.168.1.40 ...
Press CTRL+K to abort
Connected to 192.168.1.40 ...
The Server is not authenticated. Continue? [Y/N]:y
Do you want to save the server public key? [Y/N]:n
Later, you will find that you have logged in to Switch B successfully.

SFTP configuration examples

IMPORTANT:
By default, Ethernet interfaces, VLAN interfaces, and aggregate interfaces are in the state of DOWN. To
configure such an interface, use the undo shutdown command to bring it up first.
Password authentication enabled SFTP server configuration
example
Network requirements
As shown in
acts as the SFTP server and uses password authentication. The username and password of the client are
saved on the switch.
Figure 81 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).
NOTES: If the key modulus is greater than 512,
It will take a few minutes.
Press CTRL+C to abort.
Input the bits of the modulus[default = 1024]:
Generating Keys...
Figure
81, you can log in to the switch through the SFTP client that runs on the host. The switch
235

Advertisement

Table of Contents
loading

Table of Contents