I need to ssh to remote machine. Whenever I try to use Net::SSH module , its working fine in interactive mode ( issh ). But if I use batch mode ( ssh ) its failing , giving message no keys found.
How to add the keys through perl modules ? Please suggest. we can use ~/.ssh/config file. But its better if we are able to generate the key while running the script.