pyinfra
pyinfra copied to clipboard
Improve SSH connector documentation
Also some other probably useful bits:
- SSH config support
- forward agents
- preserving sudo env for git clone w/agent/similar
it is weird now that doc dosen't even specifiy how to specify login user
I tried pyinfra [email protected] deploy.py and it won't work.
How to add username in the inventory?
@v3ss0n it seems you can do something like this: pyinfra 127.0.0.1 deploy.py --user deploy --key ~/.ssh/id_ed25519
But indeed I'm having a very hard time with the documentation as well. Found the --user and --key logic frome some random example.
But how to specify a different user for each host? Is that even possible?