Menu

#13 Support for DUO prompts

Unstable (example)
closed-invalid
nobody
None
5
2021-10-26
2021-05-06
Max Ehrlich
No

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.

1 Attachments

Discussion

  • Max Ehrlich

    Max Ehrlich - 2021-05-06

    Sorry it looks like some auto formatting from my editor is included in this patch, I'll revert that and resubmit

     
  • Max Ehrlich

    Max Ehrlich - 2021-05-06

    Here's the patch without formatting

     
  • Shachar Shemesh

    Shachar Shemesh - 2021-07-12

    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/

     
  • Max Ehrlich

    Max Ehrlich - 2021-07-12

    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

     
  • Shachar Shemesh

    Shachar Shemesh - 2021-07-12

    Why, thank you. Thank you very much.

     
  • Shachar Shemesh

    Shachar Shemesh - 2021-07-12
    • status: open --> closed-invalid
     
  • nablaodel

    nablaodel - 2021-10-26

    Thank you both. I found this patch very useful and figured I'd share the steps to use it:

    curl -O -L  https://fossies.org/linux/privat/sshpass-1.09.tar.gz
    tar xvzf sshpass-1.09.tar.gz
    cd sshpass-1.09/
    
    curl -O -L https://sourceforge.net/p/sshpass/patches/_discuss/thread/1fcddce751/848e/attachment/0001-Support-DUO-prompts.patch
    patch -u main.c -i 0001-Support-DUO-prompts.patch
    
    ./configure
    make install
    
     

Log in to post a comment.