[Ssh-sftp-perl-users] Problem With Net::SSH:Perl
Brought to you by:
dbrobins
|
From: cheerla s. <ch....@gm...> - 2009-06-17 05:21:33
|
Hi ,
I am using the following code to connect to the remote host .
use Net::SSH::Perl ;
$scon = Net::SSH::Perl->new ("$host",interactive=>FALSE);
$scon->login("root","$passwd");
print "looking around ...\n";
($output,$errors,$exit) = $scon->cmd("ls -l");
print $output;
When I execute this code , it is prompting for the password .
I want to ssh without prompting for the password .
Please suggest me how I can modify the above code to ssh a client without
prompting for the password .
Thanks in Advance .
Regards,
SreeHari CH
|