HP 12500 Series Configuration Manual page 246

Routing
Table of Contents

Advertisement

++++++++
++++++++++++++
+++++
++++++++
# Generate a DSA key pair.
[Switch] public-key local create dsa
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...
++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
+++++++++++++++++++++++++++++++++++
# Enable the SSH server function.
[Switch] ssh server enable
# Enable the SFTP server.
[Switch] sftp server enable
# Configure an IP address for VLAN-interface 2, which the client will use as the destination for SSH
connection.
[Switch] interface vlan-interface 2
[Switch-Vlan-interface2] ip address 192.168.1.45 255.255.255.0
[Switch-Vlan-interface2] quit
# Set the authentication mode of the user interface to AAA.
[Switch] user-interface vty 0 4
[Switch-ui-vty0-4] authentication-mode scheme
# Enable the user interface to support SSH.
[Switch-ui-vty0-4] protocol inbound ssh
[Switch-ui-vty0-4] quit
# Configure a local user named client002 with the password as aabbcc and service type as ssh.
[Switch] local-user client002
[Switch-luser-client002] password simple aabbcc
[Switch-luser-client002] service-type ssh
[Switch-luser-client002] quit
# Configure the user authentication method as password and service type as sftp.
[Switch] ssh user client002 service-type sftp authentication-type password
Establish a connection between the SFTP client and the SFTP server:
2.
The device supports a variety of SFTP client software. The following example uses the PSFTP of
PuTTy Version 0.58.
NOTE:
The PSFTP supports only password authentication.
To establish a connection to the SFTP server:
Run the psftp.exe to launch the client interface as shown in
a.
command:
236
Figure
82, and enter the following

Advertisement

Table of Contents
loading

Table of Contents