Cgi script without password

Hi Friends,

I am using a html (CGI) script which calls a shell script internally. Now, I want to change it with ssh (without password). Is it possible?

cat maininfo.cgi

#!/usr/bin/perl -w 
use Net::Telnet ();
use CGI qw(:standard);
use CGI::Carp qw(warningsToBrowser fatalsToBrowser);
my $name = param('getvalue');
$t = new Net::Telnet(Timeout=>20,Prompt=>"/.*>/");
$t->open("172.24.13.130");
$t->login("root","xxxxxxxx");
my $subinfo=$t->cmd("/bin/getinfo.sh $name");
print qq~
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN" "http://www.w3.org/TR/REC-html40/loose.dtd">
<html>
<head>
<title> Info Search</title>
<head><title>Info Search</title></head>
<body bgcolor=white background="Graphic_sample52679.jpg" lang=EN-US style='tab-interval:.5in'>
<center><b><font color="darkblue">**********Information Searching**********</font></b></center>
<center><b><font color="darkblue">Key           : $name</font></b>

</head>
<BODY background="background_main.jpg">
<body bgcolor=darkslategray lang=EN-US link=blue vlink=purple style='tab-interval:.5in'>

<font color=darkblue>
<pre> @clid </pre>
</font>
</body>
</html>
~;