1-12Configuring the Public Key of a Client on the ServerThis configuration is not necessary if the password authentication mode is configured for SSH users.With the publickey authentication mode configured for an SSH client, you must configure the client’sRSA or DSA host public key(s) on the server for authentication.You can manually configure the public key or import it from a public key file. In the former case, you canmanually copy the client’s public key to the server. In the latter case, the system automatically convertsthe format of the public key generated by the client to complete the configuration on the server, but theclient’s public key should be transferred from the client to the server beforehand through FTP/TFTP.Table 1-7 Follow these steps to configure the public key of a client manually:To do... Use the command... RemarksEnter system view system-view —Enter public key view public-key peer keyname RequiredEnter public key edit view public-key-code begin —Configure a public key for theclientEnter the content of the publickeyWhen you input the key,spaces are allowed betweenthe characters you input(because the system canremove the spacesautomatically); you can alsopress Enter to continue yourinput at the next line. But thekey you input should be ahexadecimal digit string codedin the public key format.Return to public key view frompublic key edit view public-key-code end —Exit public key view and returnto system view peer-public-key end —Table 1-8 Follow these steps to import the public key from a public key file:To do... Use the command... RemarksEnter system view system-view —Import the public key from apublic key filepublic-key peer keynameimport sshkey filename RequiredAssigning a Public Key to an SSH User