in reply to Re^7: Dependences to install Net::SSH2 for windows
in thread Dependences to install Net::SSH2 for windows
iam getting errors like :#!/usr/bin/perl use warnings; use strict; use Net::SSH2; my $ssh2 = Net::SSH2->new(); $ssh2->connect('$hostname') or die "Unable to connect Host $@ \n"; $ssh2->auth_password('veeru','143') or die "Unable to login $@ \n"; my $chan2 = $ssh2->channel(); $chan2->shell(); print $chan2 "cd /home/john"; print "LINE : $_" while <$chan2>; print $chan2 "pwd\n"; print "LINE : $_" while <$chan2>; print $chan2 "ls -lrt \n"; print "LINE : $_" while <$chan2>;
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^9: Dependences to install Net::SSH2 for windows
by syphilis (Archbishop) on Nov 07, 2006 at 07:05 UTC | |
by shanthiann (Acolyte) on Nov 21, 2006 at 18:22 UTC |