OpenSSH can be installed on a target server using Rapid Deployment Pack (RDP), and then the HP Systems Insight Manager (HP SIM) public key can be copied to target systems.
Installing OpenSSH Using RDPCopy the OpenSSH install component to the Deployment Server. Create a new job. Add a Copy File task by selecting Add >> Copy File to. Ensure that the Copy File radio button is selected. For the Source path:, enter the complete path where the OpenSSH installer is located. For example, if OpenSSH_3.7.1p1-1.exe is in folder C:\temp\OpenSSH, enter the source path as C:\temp\OpenSSH\OpenSSH_3.7.1p1-1.exe. Under Destination path:, enter the location where you want this file to be copied on the target server. For example, if you want the file to be copied to the C:\temp\OpenSSH folder on the target server, enter the destination path as C:\temp\OpenSSH\OpenSSH_3.7.1p1-1.exe. Click [Finish]. Add a Run Script task to the job by clicking Add >> Run Script. Ensure that the Run this script radio button is selected. In the box below Run this script, enter the following:
C:\temp\OpenSSH\OpenSSH_3.7.1p1-1.exe /SILENT /NORESTART
Select the Windows radio button in the In which OS would you like to run this script? section. Click [Finish]. Drag this event and drop it on any system on which you want OpenSSH installed.
Copying the public key from HP SIM to the Target SystemsAfter OpenSSH is installed, create another script to copy the dtfsshkey.pub file (the public key) from the HP SIM server to the .ssh directory of the home directory of the administrator user on the target system. Copy the .dtfSshKey.pub file from ..\Program Files\HP\Systems Insight Manager\config\sshtools\ folder on the HP SIM server to a local folder on the deployment server, and rename .dtfSshKey.pub to authorized_keys2. Create a new job. Add a Run Script task to the job by clicking Add >> Run Script. Ensure that the Run this script radio button is selected. In the box below Run this script, enter the following (assuming that administrator’s home directory is C:\Documents and Settings\Administrator):
cd C:\Documents and Settings\Administrator\
mkdir .ssh
cd .ssh
del * /q
Select the Windows radio button in the In which OS would you like to run this script? section. Enter the complete path where you have the authorized_keys2 file as the Source path:. For example, if authorized_keys2 is in folder C:\temp\OpenSSH, enter source path as C:\temp\OpenSSH\authorized_keys2. Enter the location where you want this file to be copied on the target server under the Destination path:. For example, if the administrator’s home directory is C:\Documents and Settings\Administrator, enter the destination path as C:\Documents and Settings\Administrator\.ssh\authorized_keys2. Click [Finish]. Add a Run Script task to the job by clicking Add >> Run Script. Ensure that the Run this script radio button is selected. In the box below Run this script, enter the following command:
net stop opensshd
net start opensshd
Select the Windows radio button in the In which OS would you like to run this script? section. Click [Finish].
Drag this event and drop it on the target system where you want OpenSSH to be configured.
Related Procedures
|