HP Integrated Lights-Out 2 Management Processor Scripting and Command Line Resource Guide
<DIR_GRPACCT6_NAME VALUE="" />
<DIR_GRPACCT6_PRIV VALUE="" />
</GET_DIR_CONFIG><GET_DIR_CONFIG>
IMPORT_SSH_KEY
The IMPORT_SSH_KEY command imports a SSH_KEY and associated iLO 2 user name into iLO
2. This command requires CPQLOCFG version 2.27 or later.
After generating an SSH key using ssh-keygen and creating the key.pub file, you must perform
the following:
1. Locate the key.pub file and insert its contents between "-----BEGIN SSH KEY----"
and "-----END SSH KEY-----”. The file begins with the text ssh-dss or ssh-rsa.
2. At the end of the key, append a space and the name of a valid iLO 2 user name as displayed
on the Modify User page. For example:
xxx. . .xxx ASmith.
where xxx. . .xxx is the key information
The user name is case-sensitive and must match the case of the iLO 2 user name to associate the
SSH key with the correct user.
Example:
<RIBCL VERSION="2.0">
<LOGIN USER_LOGIN="adminname" PASSWORD="password">
<RIB_INFO MODE="write">
<IMPORT_SSH_KEY>
-----BEGIN SSH KEY-----
ssh-dss ContentOfYourSSHKeyBALftnNE12JR8T8XQqyzqc1tt6FLFRXLRM5PJpOf/
IG4hN45+x+JbaqkhH+aKqFjlfO1NjszHrFN26H1AhWOjY2bEwj2wlJzBMAhXwnPQelQs
CnJDf+zCzbDn+5Va86+qWxm0lsDEChvZPM6wpjkXvHwuInjxTzOGQTq++vmYlo1/AAAA
FQC1MFaZjE995QhX9H1DaDzpsVTXvwAAAIA6ec/hAkas2N762jtlHvSuvZaQRzu49DOt
jXVIpNdJAhTC8O2505PzkGLf5qhrbDnusclCvoH7DuxyHjeOUVxbC5wFQBcGF4VnpYZ8
nGQGt9TQ0iUV+NRwn4CR5ESoi63zTJIvKIYZDT2ISeXhF2iU6txjZzdeEm7vQz3slaY3
dgAAAIAQ46i6FBzJAYXziF/qmWMt4y6SlylOQDAsxPKk7rpxegv8RlTeon/aeL7ojb9G
Q2xnEN5gobaNZxKz2d4/jwg3+qgTDT6V1G+b7+nEI/XHIc717/7oqgiOv4VE3WxN+HE9
JWsv2jwUpAzRGqJOoojRG/CCru0K+jgTOf/di1o0sw== ASmith
-----END SSH KEY-----
</IMPORT_SSH_KEY>
</RIB_INFO>
</LOGIN>
</RIBCL>
IMPORT_SSH_KEY parameters
There are no parameters for this command.
IMPORT_SSH_KEY runtime errors
The possible IMPORT_SSH_KEY error messages include:
• RIB information is open for read-only access. Write access is
required for this operation.
• Error reading SSH Key: The imported SSH Key is invalid.
DIR_INFO 115










