My org uses duo two factor and it's insanely annoying. Current version of sshpass doesn't work with a duo prompt, it just hangs. I added support for it if you want, the option that sshpass sends is configurable via a command line switch. Patch attached.
Sorry it looks like some auto formatting from my editor is included in this patch, I'll revert that and resubmit
Here's the patch without formatting
I don't think it makes sense to accept the patch as submitted. There is discussion about this at the mailing list.
https://sourceforge.net/p/sshpass/mailman/message/37318911/
This is pretty much a dead project anyway (as if using sourceforge didnt give that away) , the patch is here for anyone who needs it
Why, thank you. Thank you very much.
Thank you both. I found this patch very useful and figured I'd share the steps to use it: