1942
C
102: SSH2.0 C
HAPTER
When Using Publickey
Authentication
ONFIGURATION
F257523777D033BEE77FC378145F2AD
[RouterA-pkey-key-code]D716D7DB9FCABB4ADBF6FB4FDB0CA25C761B308EF53009F71
01F7C62621216D5A572C379A32AC290
[RouterA-pkey-key-code]E55B394A217DA38B65B77F0185C8DB8095522D1EF044B465E
8716261214A5A3B493E866991113B2D
[RouterA-pkey-key-code]485348
[RouterA-pkey-key-code] public-key-code end
[RouterA-pkey-public-key] peer-public-key end
# Specify the host public key for the SSH server (10.165.87.136) as "key1".
[RouterA] ssh client authentication server 10.165.87.136 assign publickey key1
[RouterA] quit
# Establish an SSH connection to SSH server 10.165.87.136.
<RouterA> ssh2 10.165.87.136
Username: client001
Trying 10.165.87.136
Press CTRL+K to abort
Connected to 10.165.87.136...
Enter password:
*********************************************************
*All rights reserved (2004-2006)
*Without the owner's prior written consent,
*no decompiling or reverse-switch fabricering shall be allowed.*
*********************************************************
<RouterB>
Network requirements
As shown in
Figure
■
server) through SSH protocol.
Publickey authentication is used; the algorithm is DSA.
■
Network diagram
Figure 571 Network diagram for SSH client configuration (using publickey
authentication)
SSH server
Eth1 /1
10 .165 .87.136/24
Router B
Configuration procedure
1 Configure the SSH server
# Generate RSA and DSA key pairs and enable SSH server.
<RouterB> system-view
[RouterB] public-key local create rsa
[RouterB] public-key local create dsa
[RouterB] ssh server enable
# Configure an IP address for interface Ethernet 1/1, which the SSH client will use
as the destination for SSH connection.
571, Route A (the SSH client) logs on to Route B (the SSH
SSH client
Eth1/1
10.165 .87 .137 /24
Router A
*
*
Need help?
Do you have a question about the MSR 50 Series and is the answer not in the manual?
Questions and answers