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
In reply to Perl Net::SFTP::Foreign password authentication . No key exchange setup can be done by Yedu
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |