in reply to Net::OpenSSH and ProxyJump auth

So I'm trying to use login_hander => custom_login_hander option, and a custom handler subroutine that recognizes the password prompt and gives the right password for that stage.

Use keys instead.

Replies are listed 'Best First'.
Re^2: Net::OpenSSH and ProxyJump auth
by doke (Initiate) on Jul 23, 2025 at 19:15 UTC
    I apologize, I did not explain my situation well enough. I'm trying to ssh to various routers, switches, firewalls, etc. Many of them do not have full ssh implementations, and do not support keys. I can use keys for some things, but not everything.
      Can you use keys for the intermediate host then, so you only get one password prompt? (BTW see also sshpass)

        I'll experiment with those ideas. Thank you.