328 CHAPTER 19: SSH TERMINAL SERVICES
of the configurations. You can also debug SSH by performing the debugging
command in user view.
Table 359 Display information relevant to SSH
SSH Server
Configuration Example
Network requirements
As shown in Figure 101, a PC (SSH client) running SSH 2.0-enabled client software
establishes a local connection with the switch (SSH server) to better guarantee the
security of exchanged information.
Network diagram
Figure 101 Network diagram for SSH server
Configuration procedure
1 Generate the RSA key.
[3Com] rsa local-key-pair create
Note: If the configuration for generating the local key has already been
completed, skip this step.
2 Set the user login authentication mode.
The following shows the configuration methods for both password authentication
and RSA public key authentication.
Password authentication.
# Set the authentication mode of the user interface to AAA.
Operation Command
Display the public key of the host key
pair and the server key pair of the
server
display rsa local-key-pair public
Display the public key of the specified
RSA key pair of the client
display rsa peer-public-key [ brief |
name keyname ]
Display the SSH status information and
session information
display ssh server { status | session }
Display information about the SSH
user
display ssh user-information [
username ]
Enable SSH debugging debugging ssh server { vty vty-num |
all }
Disable SSH debugging undo debugging ssh server { vty vty-num
| all }
Switch
PC
SSH client
Switch
SSH server
PC