in reply to get ssh key passphrase from agent
Poking around in Net::SSH::Perl and its components, a couple of things suggested themselves to me. First was Net::SSH::Perl::Key->read_private($key_type, $file [, $pass] ) that can read and decrypt a private key using $pass. That with Net::SSH::Perl::Util->_read_passphrase($prompt) might be an approach. While looking at Net::SSH::Perl::Util, though, there was also Net::SSH::Perl::Util->_load_private_key($key_file [, $passphrase]). There is also Net::SSH::Perl::Agent, which indicates it can interact as a client for agent-based publickey authentication.
I know how much "fun" it can be dealing with SSH, so I hope some of the above is helpful.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: get ssh key passphrase from agent
by ninto1 (Novice) on Aug 31, 2022 at 06:05 UTC | |
by choroba (Cardinal) on Aug 31, 2022 at 07:24 UTC | |
by ninto1 (Novice) on Aug 31, 2022 at 07:28 UTC | |
by choroba (Cardinal) on Aug 31, 2022 at 07:32 UTC | |
by ninto1 (Novice) on Aug 31, 2022 at 07:36 UTC | |
|