perl - error in openSSH on windows -


use strict; use warnings; use net::openssh;  $net::openssh::debug |= 16;  $ssh = net::openssh->new(host=>'xx.xx.xx.xx',                             user => 'xxxx',                             password => 'xxxx' );  $ssh->error , die "ssh connection failed: " . $ssh->error; $command = "ls"; @out = $ssh->capture($command); print @out; 

the above prog gives following error

ssh connection failed: unable determine home directory uid 0 @ ./ssh.pl line 12. 

i using avtivestate perl (v5.12.3)

although give user instead of root gives same error.
have centos 6.4 on host.
can me?

from documentation net::openssh:

on other hand, net::openssh not work on windows, not under cygwin.

for alternative solution: how configure ssh using perl in windows?


Comments

Popular posts from this blog

javascript - jquery or ashx not working -

opencv - DataType<cv::detail::deriv_type>::depth what is it used for -

python 3.x - Mapping specific letters onto a list of words -