Menu

#27 1.9 or 1.10 doesn’t print out anything on terminal console

v1.06
open
None
2
2024-03-06
2023-02-12
John
No

sshpass 1.9 0r 1.10 doesn't out to console on ubuntu jammy or kudu
step
install sshpass on kinectic kudu
run
sshpass -p "adminpassword" sudo apt update

note same steps print everything on console on focal fossa.

Discussion

  • John

    John - 2023-02-13

    sshpass -p "adminpassword" sudo install terminator
    doesn't work on Jammy and Kinetic Kudu. It works on Focal Fossa

     
  • Shachar Shemesh

    Shachar Shemesh - 2023-02-14

    The problem reproduces on my system. I'll have a look when I can.

     
  • John

    John - 2023-03-10

    hi there, did you get a chance to fix the issue.

     
    • Shachar Shemesh

      Shachar Shemesh - 2023-03-10

      I'm sorry. I've been very busy lately.
      Atypically for sshpass, the problem is a logic problem, not a system problem. I think the state machine doesn't realize that the password prompt has been satisfied, and doesn't move on to the part where it acts as a passthrough.

       
  • John

    John - 2023-03-12

    No worries, take your time I am in no rush, fix it whenever you can.

     
  • Shachar Shemesh

    Shachar Shemesh - 2023-03-12

    Snippet from sudo's strace

    ioctl(10, TIOCGPTPEER, 0x102)    = 11
    dup3(11, 0, 0)                   = 0
    dup3(11, 1, 0)                   = 1
    dup3(11, 2, 0)                   = 2
    

    Essentially, it opens its own controlling TTY, and then sets that as the standard output, error and input for the process. This is the reason it doesn't print to the terminal: it's printing to sshpass.

    We can, perhaps, set sshpass to forward the output, but that won't work completely either. In order to work, we need to also redirect the input, and I'm not sure it makes sense to do that.

     
  • John

    John - 2023-03-13

    i am not sure about it. you can fix it the way you like. i have no idea am the end user.
    but there is no rush. just fyi they would be releasing luna lobster in April.

     
  • John

    John - 2023-06-21

    Any update on the fix.

     
  • John

    John - 2024-03-06

    Any update on the fix.

     

Log in to post a comment.