Yedu has asked for the wisdom of the Perl Monks concerning the following question:
I got the Net::SFTP::Foreign module installed and it is being worked fine for the key-exchange sftp set-up. But I need to set it up to have password based authentication where it should take the password that I passed to login.
I have gone through multiple threads on this topic and found that it is somehow possible using IO:Pty module of perl . Below is the command that I found to use.
my $sftp = Net::SFTP::Foreign->new($host, user => $user, password => $ +password,more => [-o => 'PreferredAuthentications=password,keyboard-i +nteractive,***publickey***']);
But here, in the Preferred authentications, the public key is also being passed.
Can anyone please help me on this? what is the public key that is being referred here?
Also, installing IO::Pty along with Net::SFTP::Foreign modules can server my requirement?
Please help.
Thanks and Regards,
Edu
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Perl Net::SFTP::Foreign password authentication . No key exchange setup can be done
by salva (Canon) on Jun 27, 2016 at 15:16 UTC | |
by Yedu (Acolyte) on Jun 27, 2016 at 18:40 UTC | |
by salva (Canon) on Jun 27, 2016 at 18:55 UTC |