Skip to content
DataMiner DoJo

More results...

Generic selectors
Exact matches only
Search in title
Search in content
Post Type Selectors
Search in posts
Search in pages
Search in posts
Search in pages
Log in
Menu
  • Updates & Insights
  • Questions
  • Learning
    • E-learning Courses
    • Empower Replay: Limited Edition
    • Tutorials
    • Open Classroom Training
    • Agility
      • Kanban workshop
      • Agile Fundamentals
    • Certification
      • DataMiner Fundamentals
      • DataMiner Configurator
      • DataMiner Automation
      • Scripts & Connectors Developer: HTTP Basics
      • Scripts & Connectors Developer: SNMP Basics
      • Visual Overview – Level 1
      • Verify a certificate
    • Video Library
    • Books We Like
    • >> Go to DataMiner Docs
  • Expert Center
    • Solutions & Use Cases
      • Solutions
      • Use Case Library
    • Markets & Industries
      • Media production
      • Government & defense
      • Content distribution
      • Service providers
      • Partners
      • OSS/BSS
    • Agile
      • Agile Webspace
      • Everything Agile
        • The Agile Manifesto
        • Best Practices
        • Retro Recipes
      • Methodologies
        • The Scrum Framework
        • Kanban
        • Extreme Programming
      • Roles
        • The Product Owner
        • The Agile Coach
        • The Quality & UX Coach (QX)
    • DataMiner DevOps Professional Program
      • About the DevOps Program
      • DataMiner DevOps Support
  • Downloads
  • More
    • Feature Suggestions
    • Climb the leaderboard!
    • Swag Shop
    • Contact
    • Global Feedback Survey
  • Support
  • PARTNERS
    • All Partners
    • Technology Partners
    • Strategic Partner Program
    • Deal Registration
  • >> Go to dataminer.services

Implementing Dual SSH Authentication Methods (Username/Password and Shared Key)

Solved113 views26th May 2025Connector driver protocol SSH SSH Parameters
2
Enis Abaza [SLC] [DevOps Advocate]235 23rd May 2025 0 Comments

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:

  1. 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")?

  2. 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?

Enis Abaza [SLC] [DevOps Advocate] Selected answer as best 26th May 2025

1 Answer

  • Active
  • Voted
  • Newest
  • Oldest
1
Laurens Moutton [SLC] [DevOps Enabler]8.89K Posted 26th May 2025 1 Comment

Hi,

All items are always set on the connection. I.e. when there is a user name and password attribute available, but no options, then the options will be used as empty anyhow.

In other words, the user can decide which one to use just by leaving the parameter value empty when not needed. So actually there is no togglebutton needed, simply leave the item empty if it does not need to be used.

If for some reason they want to keep all the settings and toggle between both then first create an SSH user name, password, option as normal single parameters (without the attribute specified). In the background the actual parameters with the attribute also exists and then based on the togglebutton either the user name and password values are copied to the actual parameters and options is set to an empty value, or vice versa. Do note that every set of a parameter value is considered separate, so setting user name will try to SSH connect with that user name and the values at that time that are present in password and options.

Regards,

Enis Abaza [SLC] [DevOps Advocate] Posted new comment 26th May 2025
Enis Abaza [SLC] [DevOps Advocate] commented 26th May 2025

Thank you Laurens

Please login to be able to comment or post an answer.

My DevOps rank

DevOps Members get more insights on their profile page.

My user earnings

0 Dojo credits

Spend your credits in our swag shop.

0 Reputation points

Boost your reputation, climb the leaderboard.

Promo banner DataMiner DevOps Professiona Program
DataMiner Integration Studio (DIS)
Empower Katas
Privacy Policy • Terms & Conditions • Contact

© 2025 Skyline Communications. All rights reserved.

DOJO Q&A widget

Can't find what you need?

? Explore the Q&A DataMiner Docs

[ Placeholder content for popup link ] WordPress Download Manager - Best Download Management Plugin