[Ssh-sftp-perl-users] SSH2 Connecting Issue
Brought to you by:
dbrobins
From: Hardik V. <har...@ho...> - 2006-03-03 23:04:25
|
<html><div style='background-color:'><DIV class=RTE><FONT size=2> <P>I am having issues with the SSH2 connect method. When the $WEB_SERVER is valid, it works fine and connects but when the $WEB_SERVER is invalid that perl script hangs at the connect method and "Can not connect" is never printed (Note: $WEB_SERVER is a parameter that is passed via the command line). Has anyone had similar problems and know how I can fix this issue?</P> <P>my $conn = Net::SSH2->new();</P> <P>if($conn->connect("$WEB_SERVER"))</P> <P>{</P> <P> print "Connected";</P> <P>}</P> <P>else</P> <P>{</P> <P> print "Can not connect";</P> <P>}</P> <P></FONT><BR> </P></DIV></div></html> |