you can add debug => 1 see what happens. Thanks 2012/7/19 Gary Jsz <[email protected]>: > 大家好! > > 今天测试Net::SSH::Perl模块,代码内容如下: > > #!/usr/bin/perl -w > use strict; > use Net::SSH::Perl; > > my $ssh = Net::SSH::Perl -> new('192.168.10.88', protocol=>2); > $ssh->login('gary', 'linux'); > $ssh->cmd("ls -al /tmp/"); > > > > 执行的时候报权限问题,全部信息如下: > > Permission denied at test.ssh.pl line 6 > > > > 还请大家给指点一二,谢谢! > > > -- > [email protected] > > -- > 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 > 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 > 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 > 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
-- Fayland Lam // http://www.fayland.org/ -- 您收到此邮件是因为您订阅了 Google 网上论坛的“PerlChina Mongers 讨论组”论坛。 要向此网上论坛发帖,请发送电子邮件至 [email protected]。 要取消订阅此网上论坛,请发送电子邮件至 [email protected]。 若有更多问题,请通过 http://groups.google.com/group/perlchina?hl=zh-CN 访问此网上论坛。
