White Papers
Technical white paper
3.3 Configure Remote Script Execution for script with SSH key
3.3.1 Configure SSH key
• In the Linux host, run the following command to generate SSH key: ssh-keygen -b 4096.
• Enter path in which you want to save SSH key (/root/.ssh/id_rsa): /root/testKey/redhat_id_rsa
• Your public key and private key has been saved in location /root/testKey/
• We get keys private key and public key respectively: redhat_id_rsa redhat_id_rsa.pub
• Use SSH with -i option to add public, for example - ssh -i redhat_id_rsa.pub root@100.97.135.71
• With ssh-copy-id command, make keys available to authorize logins on a remote machine. For example
ssh-copy-id -i /root/testKey/redhat_id_rsa.pub root@100.97.135.71
• Now login to Linux SSH using the private key. ssh -i redhat_id_rsa root@100.97.135.71
• Copy contains of private key “redhat_id_rsa” in of SSH key box.
3.3.2 Procedure to configure Remote Script Execution for script with SSH key
• Activate the Add Remote Command wizard in OpenManage Enterprise (Application Setting > Script
Execution > Create)
• Provide a Command Name
• For the Remote Command Type, select Script
• For the Authentication Method, select SSH Key
• Provide Username and “SSH KEY”.
Note: SSH Private key is entered in this box. (id_rsa)
• Provide Command to initiate the script. For example, ./demo.sh $IP $DATE