[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Disable passphrase querying
[Thread Prev] | [Thread Next]
- Subject: Disable passphrase querying
- From: Maximiliano Pin <mxcpin@xxxxxxxxx>
- Reply-to: libssh@xxxxxxxxxx
- Date: Fri, 27 Mar 2020 13:59:24 +0100
- To: libssh@xxxxxxxxxx
Hi all, I'm using ssh_userauth_publickey_auto(). I'd like to disable the "Enter PEM pass phrase:" prompt that appears when the user forgot to use ssh-add (the private key is encrypted), and get an error instead. This is a program with multiple threads doing non-interactive ssh communication, so that prompt is a problem. With the 'ssh' command, I can achieve that using the BatchMode option. How can I achieve the same with libssh? Thanks! Regards, Max
Re: Disable passphrase querying | Jakub Jelen <jjelen@xxxxxxxxxx> |