Hello everyone,
I’m currently enhancing the Linux Platform connector, which already supports SSH authentication via username and password. The existing implementation uses the options tag within the parameter type, as shown below:
<Param id="502" trending="false" save="true">
<Name>sshUsername</Name>
<Description>SSH Username</Description>
<Information>
<Subtext>The SSH username to login.</Subtext>
</Information>
<Type options="SSH Username">read</Type>
...
</Param>
<Param id="503" trending="false" save="true">
<Name>sshPassword</Name>
<Description>SSH Password</Description>
<Type options="SSH PWD">read</Type>
<Information>
<Subtext>The SSH password to login.</Subtext>
</Information>
...
</Param>
I need to extend this functionality to also support shared key authentication, allowing users to toggle between the two methods (e.g., via a toggle button parameter).
From the options attribute | DataMiner Docs, I found references to the ssh options tag, which seems like a potential solution. However, I have a few questions:
-
Coexistence of Methods: Is it possible to support both authentication methods in the same connector, using both option tags ("SSH PWD"/"SSH Username" and "SSH OPTIONS")?
-
If possible, how?:
- How would the protocol determine which authentication method to use?
- Would retaining the options="SSH Username" and options="SSH pwd" attributes work alongside shared key authentication using options="SSH PWD" attribute, or would manual connection handling (opening/closing the connection before SSH commands) be necessary?