Skip to content

SSH key confirmations during task runs #3342

@davidsandilands

Description

@davidsandilands

Raising case from discussion with @jay7x in community

Use Case

If your ssh key requires confirmation on every use and you have no ControlPersist in your ssh config you may see a lot of key usage confirmations during a simple task execution. I'd say it's not that obvious that Bolt does THAT many ssh connections.

Describe the Solution You Would Like

Test can use “ssh-add -c $key” to add a key to your ssh agent. This might require some dancing around ssh-agent to make it able to show a confirmation (ssh-askpass is required and also DISPLAY should be available for ssh agent on Linux)

Describe Alternatives You've Considered

ControlPersist in your ssh config

Metadata

Metadata

Assignees

No one assigned

    Labels

    FeatureNew features and improvements.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions