Net::SSH::Perl and X11 forwarding



Hi,
I want to run X application remotely. I use Net::SSH::Perl and specify
option 'ForwardX11 yes'.
Also in my .ssh/config this option is enabled but X11 connection is not
redirected - application doesn't run. I get an errror 'Could not open
display'.
This is the code snippet:
$cmd = '/some/X/appl';
$ssh = Net::SSH::Perl->new($host, port => 22, options=>["ForwardX11 yes"]);
$ssh -> login($login, $p);
($out,$err,$ex) = $ssh->cmd($cmd);
print "out:$out\n","error:$err\n","exit: $ex\n";
___END___

Running the application from the command line or through ssh commands
wrapper Net::SSH is ok.
Does anyone have any suggestions?

Thanks Radek H.


.