Owner's Manual
96 Using the RACADM Command Line Interface
Adding the Public Keys
To add a public key to the CMC using the file upload -f option, type:
racadm sshpkauth –i svcacct –k 1 –p 0xfff –f <public
key file>
NOTE: You can only use the file upload option with remote RACADM. For more
information, see "Accessing RACADM Remotely" on page 79 and subsequent
sections.
For public key privileges, see Table 3-1 in the Database Property chapter of
RACADM Command Line Reference Guide for iDRAC6 and CMC.
To add a public key using the text upload option, type:
racadm sshpkauth –i svcacct –k 1 –p 0xfff –t “<public key
text>”
Deleting the Public Keys
To delete a public key type:
racadm sshpkauth –i svcacct –k 1 –d
To delete all public keys type:
racadm sshpkauth –i svcacct –k all –d
Logging in Using Public Key Authentication
After the public keys are uploaded, you should be able to log into the CMC
over SSH without having to enter a password. You also have the option of
sending a single RACADM command as a command line argument to the
SSH application. The command line options behave like remote RACADM
since the session ends after the command is completed. For example:
Logging in:
ssh service@<domain>
Or
ssh service@<IP_address>
where <IP_address> is the IP address of the CMC.
Sending racadm commands:
ssh service@<domain> racadm getversion
ssh service@<domain> racadm getsel