Sftp Client Configuration Example - HP 5120 EI Switch Series Configuration Manual

Hide thumbs Also See for 5120 EI Switch Series:
Table of Contents

Advertisement

To do...
user view

SFTP client configuration example

Network requirements
As shown in
SFTP client, logs in to Switch B for file management and file transfer. An SSH user uses publickey
authentication with the public key algorithm being RSA.
Figure 69 Network diagram for SFTP client configuration
SFTP server
Vlan-int1
192.168.0.1/24
Switch B
Configuration procedure
NOTE:
During SFTP server configuration, the client public key is required. Use the client software to generate
RSA key pairs on the client before configuring the SFTP server.
Configure the SFTP client
1.
# Create VLAN-interface 1 and assign an IP address to it.
<SwitchA> system-view
[SwitchA] interface vlan-interface 1
[SwitchA-Vlan-interface1] ip address 192.168.0.2 255.255.255.0
[SwitchA-Vlan-interface1] quit
# Generate the RSA key pairs.
[SwitchA] 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...
++++++++
++++++++++++++
+++++
++++++++
# Export the host public key to file pubkey.
[SwitchA] public-key local export rsa ssh2 pubkey
[SwitchA] quit
Use the command...
quit
Figure
69, an SSH connection is established between Switch A and Switch B. Switch A, an
Vlan-int1
192.168.0.2/24
SFTP client
Switch A
235
Remarks
These three commands function in
the same way.

Advertisement

Table of Contents
loading

Table of Contents