Skip to content

support multiple prompts with different passwords #20

@dxlr8r

Description

@dxlr8r

It you are prompted for the same password more than once, it works. But if you are prompted for different passwords I have not made it work. In my specific use case, trying to ssh to host B through jump-host A, where the A and B's password are different.

I prefer -p env so something like this:

SSHPASSA=$(...) \
SSHPASSB=$(...) \
passh -c1 -C -t10 -T -p env:SSHPASSA,SSHPASSB \
ssh -o "ProxyJump a" b

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