in reply to Re^3: Trouble installing Net::SFTPin thread Trouble installing Net::SFTP
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