HP 10500 Series Configuration Manual page 240

Security configuration guide
Hide thumbs Also See for 10500 Series:
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 15
[Switch-ui-vty0-15] authentication-mode scheme
# Enable the user interface to support SSH.
[Switch-ui-vty0-15] protocol inbound ssh
[Switch-ui-vty0-15] 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
2.
Establish a connection between the SFTP client and the SFTP server:
The device supports a variety of SFTP client software. The following uses PSFTP of PuTTy Version
0.58 as an example.
NOTE:
PSFTP supports only password authentication.
To establish a connection between the SFTP client and the SFTP server:
a.
Run the psftp.exe to launch the client interface as shown in
command:
open 192.168.1.45
230
Figure
90, and enter the following

Advertisement

Table of Contents
loading

Table of Contents