Configuring an SSH user

Configure an SSH user and a local user depending on the authentication method.

For information about configuring local users and remote authentication, see "Configuring AAA."

Configuration restrictions and guidelines

When you configure an SSH user, follow these restrictions and guidelines:

Configuration procedure

To configure an SSH user, and specify the service type and authentication method:

Step

Command

1. Enter system view.

system-view

2. Create an SSH user, and specify the service type and authentication method.

  • In non-FIPS mode:
    ssh user
    username service-type { all | netconf | scp | sftp | stelnet } authentication-type { password | { any | password-publickey | publickey } assign { pki-domain domain-name | publickey keyname } }

  • In FIPS mode:
    ssh user
    username service-type { all | netconf | scp | sftp | stelnet } authentication-type { password | password-publickey assign { pki-domain domain-name | publickey keyname } }