140F257523777D033BEE77FC378145F2AD[SwitchA-pkey-key-code]D716D7DB9FCABB4ADBF6FB4FDB0CA25C761B308EF53009F7101F7C62621216D5A572C379A32AC290[SwitchA-pkey-key-code]E55B394A217DA38B65B77F0185C8DB8095522D1EF044B465E8716261214A5A3B493E866991113B2D[SwitchA-pkey-key-code]485348[SwitchA-pkey-key-code] public-key-code end[SwitchA-pkey-public-key] peer-public-key end# Specify the host public key for the SSH server (10.165.87.136) as key1.[SwitchA] ssh client authentication server 10.165.87.136 assign publickey key1[SwitchA] quitEstablish an SSH connection to server 10.165.87.136. ssh2 10.165.87.136Username: client001Trying 10.165.87.136Press CTRL+K to abortConnected to 10.165.87.136...Enter password:**********************************************************All rights reserved (2004-2006) **Without the owner's prior written consent, **no decompiling or reverse-engineering shall be allowed.**********************************************************When switch acts as client for public key authenticationNetwork requirements• Switch A (the SSH client) needs to log into Switch B (the SSH server) through the SSHprotocol. See Figure 47.• Publickey authentication is used, and the public key algorithm is DSA.Figure 47 Switch acts as client for publickey authenticationConfiguration procedure1. Configure the SSH serverGenerate RSA and DSA key pairs and enable SSH server. system-view[SwitchB] public-key local create rsa[SwitchB] public-key local create dsa