Net :: SSH :: Expect ..Cipher选项是否给出了Iillegal参数错误?

时间:2014-05-28 19:33:28

标签: perl ssh

我尝试使用以下构造函数连接到一个设备

my $ssh = Net::SSH::Expect->new(
user => $user,
host => $host,
password  => $password,
cipher => $cipher,
user => $user,
timeout => $timeout,
raw_pty =>1,);

并低于错误 IllegalArgument属性' cipher'不是有效的构造函数参数。在cipher.pl第34行 有人可以提供建议吗? 这是模块代码的片段,它认为这接受了密码'

sub connect {
my Net::SSH::Expect $self = shift;
  my $cipher = $self->{cipher};

0 个答案:

没有答案