You must ensure that your script executions between SSH clients and the HMC are secure.
HMCs typically are placed inside the machine room where managed systems are located, so you might not have physical access to the HMC. In this case, you can remotely access it using either a remote Web browser or the remote command line interface.
To enable scripts to run unattended between an SSH client and an HMC, do the following:
The write bits for both group and other are turned off. Ensure that the private key has a permission of 600.
ssh hmcuser@hmchostname “mkauthkeys -–add '<the contents of $HOME/ .ssh/id_rsa.pub>' “ “
To delete the key from the HMC, can use the following command:
ssh hmcuser@hmchostname “mkauthkeys --remove 'joe@somehost' “
To enable password prompting for all hosts that access the HMC through ssh, use the scp command to copy the key file from the HMC: scp hmcuser@hmchostname:.ssh/authorized_keys2 authorized_keys2
Edit the authorized_keys2 file and remove all lines in this file. Then copy it back to the HMC: scp authorized_keys2 hmcuser@hmchostname:.ssh/authorized_keys2