in reply to problem with net::sftp

Are you able to connect to the remote host with the sftp client?

Looking at your previous posts, it seems that your problem, actually, is finding a way to connect to a SFTP server. Read Re^3: package that can handle ftp, sftp, http etc ? for a description of the options currently available.