You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'd like to clone a git repo via SSH (git.repo(src="ssh://...")) on a target host using an identity provided by an SSH-agent on the pyinfra-machine.
The agent itself is working (via ssh_allow_agent=True) and is used by pyinfra to log into the host.
Agent forwarding is also enabled via ssh_forward_agent=True (and I can see it being applied when running pyinfra -vvv --debug ...).
However, cloning the repo fails with error Permission denied (publickey,password).
How can I make this work?
BTW, cloning by running git clone ssh://... manually on the host (with agent forwarding) works as expected.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Hi,
I'd like to clone a git repo via SSH (
git.repo(src="ssh://...")
) on a target host using an identity provided by an SSH-agent on the pyinfra-machine.The agent itself is working (via
ssh_allow_agent=True
) and is used by pyinfra to log into the host.Agent forwarding is also enabled via
ssh_forward_agent=True
(and I can see it being applied when runningpyinfra -vvv --debug ...
).However, cloning the repo fails with error
Permission denied (publickey,password)
.How can I make this work?
BTW, cloning by running
git clone ssh://...
manually on the host (with agent forwarding) works as expected.Thank you very much!
Beta Was this translation helpful? Give feedback.
All reactions