- 论坛徽章:
- 0
|
执行Net::OpenSSH->new("systemdirector.sit.ibm.com", user => "root" ; 后,用Data: umper打印出来$ssh的内容发现是没有权限在/var/www/cgi-bin目录下创建ctl文件,把ctl_dir加入到脚本中,
变成
my $ssh = Net::OpenSSH->new("systemdirector.sit.ibm.com", user => "root", ctl_dir => "../datafile/" ;
然后还是报错,再次打印发现
$VAR1 = \bless( { '_default_stdout_fh' => undef, '_vars' => {}, '_scp_cmd' => undef, '_proxy_command' => undef, '_home' => '/var/www', '_master_stdout_fh' => undef, '_port' => undef, '_login_handler' => undef, '_ssh_cmd' => 'ssh', '_default_stdin_fh' => undef, '_default_ssh_opts' => undef, '_kill_ssh_on_timeout' => undef, '_ctl_path' => '../datafile/root-systemdirector.-2579-709233', '_target_os' => 'unix', '_master_stderr_fh' => undef, '_wfm_bout' => '', '_default_stream_encoding' => undef, '_gateway_args' => undef, '_batch_mode' => undef, '_default_stderr_fh' => undef, '_master_opts' => [], '_passphrase' => undef, '_default_argument_encoding' => undef, '_error' => 'unable to establish master SSH connection: master process exited unexpectedly', '_host' => 'systemdirector.sit.ibm.com', '_key_path' => undef, '_pid' => 2580, '_user' => 'root', '_master_stderr_discard' => undef, '_master_stdout_discard' => undef, '_host_squared' => 'systemdirector.sit.ibm.com', '_thread_generation' => 0, '_ssh_opts' => [ '-l', 'root' ], '_timeout' => undef, '_error_prefix' => [], '_rsync_cmd' => 'rsync', '_external_master' => undef, '_expand_vars' => undef, '_passwd' => undef, '_perl_pid' => 2579 }, 'Net::OpenSSH' );
终于有了不一样的错误,但是这个错误'_error' => 'unable to establish master SSH connection: master process exited unexpectedly' , 我查了一下。。目前还是不知道如何fix?
我是用linux去连AIX.. |
|