Skip to content

sshpass process hangs on Windows 11 when running SSH commands #10

@pidgeon777

Description

@pidgeon777

Bug Description:
When running the following command:

sshpass -p my_password ssh root@192.168.137.30 ls

the sshpass process hangs and does not complete. I have to press Ctrl+C to stop the process manually.

Environment:

  • Operating System: Windows 11 Pro (Version 24H2, OS Build 26100.4946)

Steps to Reproduce:

  1. Install sshpass on Windows 11.
  2. Run the command above (replace credentials as needed).
  3. Observe that the process gets stuck and requires manual interruption.

Expected Behavior:
The SSH command should execute and return the output of ls, then exit cleanly.

Actual Behavior:
The process hangs indefinitely until Ctrl+C is pressed.

Additional Information:

  • This issue was observed with the Windows build described in the attached screenshot.
  • No specific error message is shown; the process just gets stuck.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions