ansible / ansible-navigator

A text-based user interface (TUI) for Ansible.
https://ansible.readthedocs.io/projects/navigator/
Apache License 2.0
394 stars 103 forks source link

Yubikey SSh #1338

Open matuck opened 2 years ago

matuck commented 2 years ago
ISSUE TYPE
SUMMARY

How would you go about using a yubikey to authenticate for ssh. The yubikey never prompts for pinentry or the button never starts flashing to signal that it needs to connect.

cidrblock commented 1 year ago

I don't know the answer to this one..... but maybe we can help figure it out.

Does it work with just "ansible-playbook....." Does it work with "ansible-navigator --ee false"

I'm trying to figure out if this is an execution environment issue...

matuck commented 1 year ago

This works as an ansible playbook. It also works if i do --ee false

ssbarnea commented 1 year ago

@matuck You need need to find what are the special requirements from yubi for making this work as the code runs from inside a containers.

For example we know that ssh-agent works and that is the "official" way to get access to the ssh keys.

Without more detailed information regarding what we might need to do to make it work, we will have to close it as not-supported use case.

I would first attempt to make your custom SSH work with a random container. If you make it work from within a container, we will likely be able to to fix it.