use Net::OpenSSH;
use IO::Pty;
use strict;
use warnings;
my $ip = "192.168.1.102";
my $ssh_password = "1234567";
my $ssh_user = "root";
my $ssh_port = "22";
my $ssh= Net::OpenSSH->new($ip,user=>$ssh_user,passwd=>$ssh_password,port=>$ssh_port);
$ssh->error and die "Couldn't establish SSH connection: ". $ssh->error;
Net::OpenSSH与IO::Pty 均通过cpan成功安装
运行时错误提示
[root@study perl]# ./net_openssh
Unrecognized character \xA3; marked by <-- HERE after se IO::Pty<-- HERE near column 12 at ./net_openssh line 4.
请问这个错误要如何解决。谢谢作者: py 时间: 2013-08-07 07:47
bluesmile11 发表于 2013-08-06 22:55 column 12 at ./net_openssh line 4