in reply to Net::SSH::Perl - looking for someone to point me in the right direction
#!/usr/bin/perl -wT use CGI qw(:standard); use CGI::Carp qw(warningsToBrowser fatalsToBrowser); use strict; print header; print start_html("Thank You"); print h2("Thank You"); my %form; foreach my $p (param()) { $form{$p} = param($p); #print "$p = $form{$p}\n"; } print end_html; my $mypassword; $mypassword = '******'; my $var; my $val; print header; foreach $var (sort(keys(%ENV))) { $val = $ENV{$var}; $val =~ s|\n|\\n|g; $val =~ s|"|\\"|g; #print "${var}=\"${val}\"\n"; } use Net::SSH::Perl; print "Here is where we try to make the ssh"; my $ssh = Net::SSH::Perl->new('my_personal_box'); print "here is the ssh part: $ssh"; $ssh->login("my_userid", $mypassword); print end_html;
If you put your code samples inside code tags then it's easier to read.
So, what have you tried to fix the error Software error: Can't write to /.ssh/known_hosts2: Permission denied at /usr/lib/perl5/site_perl/5.8.5/Net/SSH/Perl.pm line 380? This is a message that SSH wants to update your known hosts file. Fix that problem, and the error should go away.
Alex / talexb / Toronto
"Groklaw is the open-source mentality applied to legal research" ~ Linus Torvalds
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Net::SSH::Perl - looking for someone to point me in the right direction
by Anonymous Monk on Oct 04, 2005 at 20:11 UTC | |
by talexb (Chancellor) on Oct 04, 2005 at 20:27 UTC | |
by Anonymous Monk on Oct 04, 2005 at 21:46 UTC | |
by talexb (Chancellor) on Oct 05, 2005 at 03:00 UTC |