Sftp Configuration Examples; Password Authentication Enabled Sftp Server Configuration Example - HP FlexFabric 5930 Series Security Configuration Manual

Hide thumbs Also See for FlexFabric 5930 Series:
Table of Contents

Advertisement

# Create an SSH user client002 with the authentication method publickey, and assign the public
key switchkey to the user.
[SwitchB] ssh user client002 service-type stelnet authentication-type publickey
assign publickey switchkey
# Create a local device management user client002 with the service type ssh and the user role
network-admin.
[SwitchB] local-user client002 class manage
[SwitchB-luser-manage-client002] service-type ssh
[SwitchB-luser-manage-client002] authorization-attribute user-role network-admin
[SwitchB-luser-manage-client002] quit
3.
Establish an SSH connection to the Stelnet server 192.168.1.40.
<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

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 35 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).
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...
Figure
35, you can log in to the switch through the SFTP client that runs on the host and are
130

Advertisement

Table of Contents
loading

Table of Contents