http://qs321.pair.com?node_id=906413


in reply to Help required for SFTP code in Perl..urgent !!!

The documentation for Net::SFTP shows how to pass arguments, including ssh_args: see this link.

I think you refer to the key by name or filename, not give the key itself. So whatever you need to pass as ssh_args, you can add to your configuration file.