in reply to Re^2: Trouble installing Net::SFTP
in thread Trouble installing Net::SFTP

But is there any reason to not use pairs of public and private keys for authentication?

Hard coding ssh password in your scripts is usually a very bad idea. It just means throwing away several of the meassures ssh takes to trust your environment.

Replies are listed 'Best First'.
Re^4: Trouble installing Net::SFTP
by shilpam (Sexton) on Feb 23, 2006 at 11:31 UTC
    Can you pl. give me an eg of how to use public/private keys for authentication?
      you have to add your public key, usually ~/.ssh/id_rsa.pub, to ~/.ssh/authorized_keys on the remote machine.

      Googling, I have found this page that explains all the required steps in detail.

      If you are using the commercial version of ssh, the process is different but it is explained on the FAQ