[Ssh-sftp-perl-users] help needed for SFTP,SCP keys
Brought to you by:
dbrobins
|
From: Vikas P. <vik...@ya...> - 2008-07-07 07:23:11
|
Hello
I have one problem in Perl. I need to implement SFTP-Password, SFTP-Keys,SCP-Password and Scp-Keys in Perl to transfer the file from one system to another system. I have already implemented ftp and it is working fine
For FTP I have used
To login the system:-
$ftp=Net::FTP->new("$z_host", Debug => 1);
$ftp->login("$z_user", "$z_auth");
To Transfer the file
$ftp->put("$p_file_name","$f_ftp") or &idss_error("Error");
But for SFTP, SCP etc I am not able to find the function equivalent to these like new,login,put etc.
does anyone have any sample code or 2-3 lines which explain all these. I will be hoghly thankful to all of you. I am using
use Net::SSH2;
If have any idea about this please let me know. Thanks in Advance
|