Sftp Configuration Examples; When The Switch Acts As An Sftp Server For Password Authentication - HP 10500 Series Configuration Manual

Security configuration guide
Hide thumbs Also See for 10500 Series:
Table of Contents

Advertisement

# Specify the authentication method for user client002 as publickey, and assign the public key
SwitchKey to the user.
[SwitchB] ssh user client002 service-type stelnet authentication-type publickey
assign publickey SwitchKey
3.
Establish a connection to the Stelnet server:
# 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
Then, you can log in to Router B successfully.

SFTP configuration examples

The section describes details about SFTP configuration examples.
When the switch acts as an SFTP server for password
authentication
Network requirements
As shown in
switch acts as the SFTP server and uses password authentication. The username and password of the
client are saved on the switch.
Figure 89 Network diagram
Configuration procedure
1.
Configure the SFTP server:
# 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
89, you can log in to the switch through the SFTP client that runs on the host. The
229

Advertisement

Table of Contents
loading

Table of Contents