Menu

#31 [feature request] sshpass should ask for password using the interactive password prompt

v1.06
wont-fix
nobody
None
5
2024-05-22
2024-05-22
Yuri
No

sshpass should ask for password the same was as ssh itself asks: with password not being displayed, etc.

Discussion

  • Shachar Shemesh

    Shachar Shemesh - 2024-05-22

    Can you please outline the use case behind this request?

     
  • Yuri

    Yuri - 2024-05-22

    At work I wrote a script that allows to start some processes on many machines.
    It uses sshpass and pssh.

    Currently the password should either be typed at program's start or password should be supplied as program's argument.

    Both options are bad. The former option makes it tricky to enter password for people who aren't used to it, and the latter option isn't secure and is also inconvenient.

    sshpass should really print a prompt just like ssh, and should accept the password from the interactive prompt.

     
    • Shachar Shemesh

      Shachar Shemesh - 2024-05-22

      I fail to see how that is different than just running ssh and letting it ask for the password.

       
  • Yuri

    Yuri - 2024-05-22

    The same program should be run on 100 machines.
    Users can't type ssh password 100 times.
    sshpass and pssh combination allow to type the password only once.
    However, the process of typing password is not as good what ssh itself provides.

     
    • Shachar Shemesh

      Shachar Shemesh - 2024-05-22

      Each run of sshpass only provides the password to one ssh instance. If sshpass asks for the password, then it will ask for the password 100 times.

      What you need is a standalone program that asks for the password in a secure way, and then transfers it to sshpass on all 100 instances. This should by no means be part of sshpass itself.

      A quick search showed https://github.com/r-lib/askpass. See if it's any help to you.

       
  • Shachar Shemesh

    Shachar Shemesh - 2024-05-22
    • status: open --> wont-fix
     

Log in to post a comment.