Hello Khen,
Thanks for the prompt response.
The above would work assuming the key ("/home/User/.ssh/id_rsa") did not have a password. i.e. if you entered a null password when ssh-keygen prompted for one.
However my keys have explicit passwords set. Although the example above tells net::ssh::perl to use a key for authentication, it is still not automatically providing the password.
Comment on Re^2: passphrase on a RSA key with net::ssh::perl