HP 6125XLG R2306-HP 6125XLG Blade Switch Security Configuration Guide - Page 163
the service type, the user role
View all HP 6125XLG manuals
Add to My Manuals
Save this manual to your list of manuals |
Page 163 highlights
Press CTRL+C to abort. Input the modulus length [default = 1024]: Generating Keys Create the key pair successfully. # Generate a DSA key pair. [Switch] public-key local create dsa 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 Create the key pair successfully. # Enable the SSH server function. [Switch] ssh server enable # Enable the SFTP server. [Switch] sftp server enable # Assign an IP address to VLAN-interface 2. The client uses this address 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 # Create a local device management user named client002 with the plaintext password aabbcc, the service type ssh, the user role network-admin, and the working directory flash:/. [Switch] local-user client002 class manage [Switch-luser-manage-client002] password simple aabbcc [Switch-luser-manage-client002] service-type ssh [Switch-luser-manage-client002] authorization-attribute user-role network-admin work-directory flash:/ [Switch-luser-manage-client002] quit # Create an SSH user client002 with the authentication method password and service type sftp. (Optional. If the SSH user is not created, password authentication is used by default.) [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 different types of SFTP client software. This example uses an SFTP client that runs PSFTP of PuTTy version 0.58. NOTE: PSFTP supports only password authentication. To establish a connection to the SFTP server: 154