Configuring user authentication using the CLI

Prev Next

Use the commands in this section to configure authentication parameters for the remote user the Central Management System appliance uses to log in to a managed appliance to establish the connection. This is an existing "admin" user on the managed appliance.

Note

See the ssh and cmc commands in the CLI Command Reference for advanced authentication options.

To configure password authentication:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Specify the "password" authentication type:

    hostname (config) # cmc appliance <identityID> authtype password
  3. Specify the remote user to log in to the managed appliance:

    hostname (config) # cmc appliance <applianceID> auth password username <username>
  4. Specify the password used to authenticate the remote user:

    hostname (config) # cmc appliance <applianceID> auth password password <password>
  5. Save your changes:

    hostname (config) # write memory
To configure SSH-DSA2 authentication:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Specify the SSH-DSA2 authentication type:

    hostname (config) # cmc appliance <applicationID> authtype ssh-dsa2
  3. Specify the remote user to log in to the managedCentral Management System appliance:

    hostname (config) # cmc appliance <applianceID> auth ssh-dsa2 username <username>
  4. Specify the named identity used to authenticate the remote user:

    hostname (config) # cmc appliance <applianceID> auth ssh-dsa2 identity <identityName>

    where <identityName> is the name of an existing identity.

  5. Save your changes:

    hostname (config) # write memory
To configure SSH-RSA2 authentication:
  1. Go to CLI configuration mode:

    hostname > enable
    hostname # configure terminal
  2. Specify the SSH-RSA2 authentication type:

    hostname (config) # cmc appliance <applianceID> authtype ssh-rsa2
  3. Specify the remote user to log in to the managedCentral Management System appliance:

    hostname (config) # cmc appliance <applianceID> auth ssh-rsa2 username <username>
  4. Specify the named identity used to authenticate the remote user:

    hostname (config) # cmc appliance <applianceID> auth ssh-rsa2 identity <identityName>

    where <identityName> is the name of an existing identity.

  5. Save your changes:

    hostname (config) # write memory

Example

The following example configures SSH-RSA2 authentication parameters used to log in to the NX-04 appliance.

hostname (config) # cmc appliance NX-04 auth authtype ssh-rsa2
hostname (config) # cmc appliance NX-04 auth ssh-rsa2 username cmcadmin2
hostname (config) # cmc appliance NX-04 auth ssh-rsa2 identity admin2