🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: pl.comp.lang.perl
1 messages
1 total messages Started by karraso Thu, 15 Nov 2012 22:51
CGI PERL
#51380
Author: karraso
Date: Thu, 15 Nov 2012 22:51
28 lines
941 bytes
Witam 
Temat jest podobny do mojego poprzedniego tematu ju¿ zg³aszanego, jednak tylko  podobny. 
Mam ju¿ odpowiedni kod w CGI, jednak jak wy¶wietlam w przegl±darce to wyskakuje mi b³±d: Host key verification failed 
Pytanie jak w Net::SSH zrobiæ weryfikacjê po kluczu. 
Klucz publiczny jest ju¿ na serwerze docelowym, w perlu wszystko mi dzia³a poprawnie. 

Jak zatem zmusiæ CGI aby wybiera³ tê sam± ¶cie¿kê do klucza co perl? 

Stachu tylko spokojnie ¿e tak siê  nie powinno robiæ :) 
Dodatkowo tylko ten modu³ jest dostêpny pod windowsa. 
###################### 
use Net::SSH qw(sshopen3); 

my $user = "user"; 
my $host = "ip_address"; 
my $cmd = "ls -l"; 
sshopen3( "$user\@$host", *WRITER, *READER, *ERROR, "$cmd" ); 
my $out = <READER>; 
my $error = <ERROR>; 
chomp $out; 
print "$out\n"; 
print "$error\n"; 
######################

Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads