For the SSH adapter, in addition to target computers defined in the adapter configuration, you can define dynamic target computers in each adapter request. If a dynamic target is defined in the SSH adapter request, use a configuration node, <config/>, in the adapter configuration.
BMC recommends that you do not include unused elements in the adapter configuration because they might cause errors.
Adapter type: ro-adapter-ssh[version]
Default adapter name: SSHAdapter
To configure the SSH adapter, see Configuring base adapters.
The following table describes the adapter configuration elements for the SSH adapter that you can specify by using the form view, XML view, or both. You cannot use the form view to configure elements and attributes that do not have an entry in the "UI label" column.
Configuration node elements of the SSH adapter
The following figure shows the XML template for SSH adapter configuration with password approach.
XML template of the SSH adapter configuration with password approach
<config>
<config name = "">
<target></target>
<port></port>
<user-name></user-name>
<password encryption-type=""> </password>
<prompt></prompt>
<verify-os></verify-os>
<read-buffer-size></read-buffer-size>
<timeout-secs></timeout-secs>
<known-hosts-config></known-hosts-config>
<allow-unknown-hosts></allow-unknown-hosts>
<preferred-pk-algorithm></preferred-pk-algorithm>
<establish-connection-timeout-secs></establish-connection-timeout-secs>
<network-environment></network-environment>
<line-termination></line-termination>
</config>
The following figure shows the XML template for SSH adapter configuration with private-key-file approach.
XML template of the SSH adapter configuration with private-key-file approach
<config>
<config name = "">
<target></target>
<port></port>
<user-name></user-name>
<private-key-file></private-key-file>
<pass-phrase encryption-type=""></pass-phrase>
<prompt></prompt>
<verify-os></verify-os>
<timeout-secs></timeout-secs>
<read-buffer-size></read-buffer-size>
<known-hosts-config></known-hosts-config>
<allow-unknown-hosts></allow-unknown-hosts>
<preferred-pk-algorithm></preferred-pk-algorithm>
<establish-connection-timeout-secs></establish-connection-timeout-secs>
<network-environment></network-environment>
<line-termination></line-termination>
</config>
Recommendation
BMC recommends that you use the password or the private-key-file approach; not both the approaches together.
The following figure shows the XML template for SSH adapter configuration with private-key-data approach.
XML template of the SSH adapter configuration with private-key-data approach
<config name="testPKA">
<target>10.128.248.118</target>
<user-name>name</user-name>
<private-key-data>--BEGIN RSA PRIVATE KEY----
Proc-Type: 4,ENCRYPTED
DEK-Info: DES-EDE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55e8kP3tilO3HbNmfDRAgPoBUE1nIfRpv738nYbbOl
msSrcv2lULIsF1qvA69ZOM5ziKvu0ElpgHMhZTGB4mcO8bDuBIdVeYhmmBgNL5r1
GPOjdA/rqchWovR2SdCPTN0QiAhdFSzOKXSCJnv29dXsWSEUiYiXnTkLuyNOIgTS
5ypd6MzPDbY8gWL/OYrdC8H98jt9YiZVroU7ra9zFoRC8cXbKgZevqoNnUUBTcfa
pj5VzhKsHOwcObdL/oGxum97CDpjNoUYjqEF2W8N6rnScaCqoInOjGkm0WLxreLD
BwsOJ2J7c40sr0gWzDGBC70HmA2rQba9TWZDuoE98H8XAv8Pdnv9K8+u/Q6IoXpo
LJJmvjvA4LiPGn688+nKrcvrx8D5iz64ynQ2TaQlwz538AKFsaIBrn2F1oSnZ09M
m45n5Rgkih0pti9SiOHbm84X7696mQLdh2y07U1IXj+uQoC30gJHKQa37kEEKYeV
+ERwLmMr+JH2DWADnBMqizd2+ROo0V2vL4Vj17B+9rGg0LmnyCkyQQ==
--END RSA PRIVATE KEY----
</private-key-data>
<prompt>$</prompt>
<pass-phrase encryption-type="plain">changeit</pass-phrase>
</config>
The following figure shows an XML sample for SSH adapter configuration with CharSet.
XML sample of the SSH adapter configuration with CharSet
<config name="KbiConfig">
<target>server1</target>
<user-name>testuser</user-name>
<port>22</port>
<password>abc</password>
<verify-os>true</verify-os>
<read-buffer-size>1024</read-buffer-size>
<timeout-secs></timeout-secs>}}
<allow-unknown-hosts>true</allow-unknown-hosts>
<character-set>Shift_JIS</character-set>
</config>