1-7To do… Use the command… RemarksEnter public key view public-key peer keyname —Enter public key code view public-key-code begin —Configure a client public key Enter the content of the public keyRequiredSpaces and carriage returns areallowed between characters.Return from public key code viewto public key view public-key-code end—When you exit public key codeview, the system automaticallysaves the public key.Return from public key view tosystem view peer-public-key end —Importing a client public key from a public key fileFollow these steps to import a public key from a public key file:To do… Use the command… RemarksEnter system view system-view —Import the public key from a publickey filepublic-key peer keyname importsshkey filename RequiredFor information about client side public key configuration and the relevant commands, refer to PublicKey Configuration in the Security Volume.Configuring an SSH UserThis configuration allows you to create an SSH user and specify the service type and authenticationmode.Follow these steps to configure an SSH user and specify the service type and authentication mode:To do… Use the command… RemarksEnter system view system-view —For Stelnetusersssh user username service-type stelnetauthentication-type { password | { any |password-publickey | publickey } assignpublickey keyname }Create an SSHuser, andspecify theservice typeandauthenticationmodeFor all users orSFTP usersssh user username service-type { all | sftp }authentication-type { password | { any |password-publickey | publickey } assignpublickey keyname work-directorydirectory-name }RequiredUse eithercommand.