我尝试使用以下构造函数连接到一个设备
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};