HP Systems Insight Manager 5.2 Update 2 Technical Reference Guide

Deploying OpenSSH to multiple systems using RDP
Creating an OpenSSH task through the CLI
Deploying OpenSSH to multiple systems using RDP
OpenSSH can be installed on a target server using HP Rapid Deployment Pack (RDP), and then the HP
Systems Insight Manager (HP SIM) public key can be copied to target systems.
Installing OpenSSH Using RDP
1. Copy the OpenSSH install component to the Deployment Server.
2. Create a new job.
3. Add a Copy File task by selecting Add >> Copy File to.
4. Ensure that the Copy File option is selected.
5. 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.
6. 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.
7. Click Finish.
8. Add a Run Script task to the job by clicking Add >> Run Script.
9. Ensure that the Run this script option is selected.
10. In the box below Run this script, enter the following:
C:\temp\OpenSSH\OpenSSH_3.7.1p1-1.exe /SILENT /NORESTART
11. Select the Windows radio button in the In which OS would you like to run this script? section.
12. Click Finish.
13. 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 systems
After 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.
1. 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.
a. Create a new job.
b. Add a Run Script task to the job by clicking Add >> Run Script.
c. Ensure that the Run this script option is selected.
d. 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
e. Select the Windows option in the In which OS would you like to run this script? section.
f. 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.
g. 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.
h. Click Finish.
Installing OpenSSH 413