Closed anbsky closed 2 years ago
Hi @andybeletsky - could you try with specifying the key directly, ie ssh_key: '/path/to/key'
. You should get a prompt for the password.
Are you using an SSH agent? I think the issue here is when a key isn't explicitly provided the password flow isn't followed, which should only happen if a key is found on disk (by default pyinfra will look for agent + keys if none provided).
Closing pending furhter information, happy to reopen with more info :)
Describe the bug
Pyinfra is unable to connect when authenticating with an SSH key. Supplying or ommitting ssh_key_password in the inventory or as a cli argument does not change the behavior in any way.
To Reproduce
inventory.py
:deploy.py
:pyinfra inventory.py deploy.py
Meta
PIP-installed.