I have a faceless account on a remote machine.i.e, i do not have to insert my password when doing a ssh.My question is that what should be my code if i do not have to use the password through the perl code.In the shown code its still asking for a password
$cmd="cat /read.log";
my $ssh = Net::SSH::Perl->new($host, protocol => '1,2', debug => 1);
$ssh->login($user, $pass);
my($stdout, $stderr, $exit) = $ssh->cmd($cmd);
print $stdout, "\n";