1-13This configuration task is unnecessary if the SSH user’s authentication mode is password.For the publickey authentication mode, you must specify the client’s public key on the server forauthentication.Follow these steps to assign a public key for an SSH user:To do... Use the command... RemarksEnter system view system-view —Assign a public key to an SSH user ssh user username assignpublickey keynameRequiredIf you issue this command multipletimes, the last command overridesthe previous ones.Exporting the Host Public Key to a FileIn tasks of Configuring the Public Key of a Client on the Server or Configuring whether first-timeauthentication is supported, an SSH client’s or an SSH server's host public key can be imported from apublic key file. This task allows you to export the host public key to a file on the client or server devicewith key pairs generated.Follow these steps to export the RSA host public key:To do... Use the command... RemarksEnter system view system-view —Export the RSA host public keyto a specified filepublic-key local export rsa{ openssh | ssh1 | ssh2 }[ filename ]RequiredFollow these steps to export the DSA host public key:To do... Use the command... RemarksEnter system view system-view —Export the DSA host public keyto a specified filepublic-key local export dsa{ openssh | ssh2 } [ filename ] Required