in reply to Net::SFTP::Foreign and Using Passphrases on Private Keys
According to http://search.cpan.org/~rkitover/Net-SSH2-0.44/lib/Net/SSH2.pm#auth_publickey_%28_username,_public_key,_private_key_,_password__%29
It appears that passwords are supported for public keys.. "auth_publickey ( username, public key, private key , password ) Note that public key and private key are names of files containing the keys! Authenticate using keys and an optional password."
Also, i'm not sure if this is a typo but your "passphrase => $passphrase," should be "passphrase => $passPhrase,"
If I am reading the documentation correctly, "passphrase =>" should be "password =>"
I hope this helps
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Net::SFTP::Foreign and Using Passphrases on Private Keys
by swamprich (Novice) on Apr 27, 2012 at 14:12 UTC | |
by mlebel (Hermit) on Apr 27, 2012 at 14:55 UTC | |
by syphilis (Archbishop) on Apr 28, 2012 at 14:24 UTC |
In Section
Seekers of Perl Wisdom