in reply to Re^2: passphrase on a RSA key with net::ssh::perl
in thread passphrase on a RSA key with net::ssh::perl

Try using Net::OpenSSH instead of Net::SSH::Perl. As it uses the OpenSSH client to connect to the remote machine, it would also behave in the same way, talking to ssh-agent or asking for the key passphrase on the console or through the X server (via ssh-add).

What it does not support yet is feeding the passphrase directly from the script to the SSH client.

  • Comment on Re^3: passphrase on a RSA key with net::ssh::perl