Ssh Server Configuration Examples; When Switch Acts As Server For Password Authentication - HP 4800G Series Configuration Manual

24/48 port
Table of Contents

Advertisement

To do...
Display information about a
specified or all SSH users on
the SSH server
Display the public keys of the
local key pairs
Display the public keys of the
SSH peers
For information about the display public-key local and display public-key peer commands, refer to
Public Key Commands in the Security Volume.

SSH Server Configuration Examples

When Switch Acts as Server for Password Authentication

Network requirements
As shown in
and the switch (the SSH server) for secure data exchange.
Password authentication is required. The username and password are saved on the switch.
Figure 1-1 Switch acts as server for password authentication
Configuration procedure
1)
Configure the SSH server
# Generate RSA and DSA key pairs and enable the SSH server.
<Switch> system-view
[Switch] public-key local create rsa
[Switch] public-key local create dsa
[Switch] ssh server enable
# Configure an IP address for VLAN interface 1. This address will serve as the destination of the SSH
connection.
[Switch] interface vlan-interface 1
[Switch-Vlan-interface1] ip address 192.168.1.40 255.255.255.0
[Switch-Vlan-interface1] quit
# Set the authentication mode for the user interfaces to AAA.
Use the command...
display ssh user-information
[ username ]
display public-key local { dsa
| rsa } public
display public-key peer
[ brief | name publickey-name ]
Figure
1-1, a local SSH connection is established between the host (the SSH client)
1-12
Remarks
Available in any view
Available in any view
Available in any view

Advertisement

Chapters

Table of Contents
loading

Table of Contents