On the Solaris operating system, the keylogin command decrypts and stores a secret key with keyserv.

Description

The keylogin command prompts for a password, and uses it to decrypt the user’s secret key. The key is found in the /etc/publickey file. The sources and their look up order are specified in the /etc/nsswitch.conf file. Once decrypted, the user’s secret key is stored by the local key server process, keyserv. This stored key is used when issuing requests to any secure RPC services, such as NFS or NIS+. The program keylogout can delete the key stored by keyserv.

  • Description
  • Syntax
  • Related commands
  • Linux commands help

keylogin fails if it cannot get the caller’s key, or the password given is incorrect. For a new user or host, a new key can be added using newkey, nisaddcred, or nisclient.

If multiple authentication mechanisms are configured for the system, each of the configured mechanism’s secret key is decrypted and stored by keyserv. See nisauthconf for information on configuring multiple authentication mechanisms.

Syntax

keylogin [-r]

Options

login — Begin a session on a system.