Net::SSH::Perl and X11 forwarding
- From: "Radomir Hejl" <rh62121@xxxxxxxxx>
- Date: Wed, 18 May 2005 20:19:53 +0200
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.
.
- Follow-Ups:
- Re: Net::SSH::Perl and X11 forwarding
- From: peter pilsl
- Re: Net::SSH::Perl and X11 forwarding
- Prev by Date: Re: need Net::AIMTOC help
- Next by Date: Re: Net::SSH::Perl and X11 forwarding
- Previous by thread: need Net::AIMTOC help
- Next by thread: Re: Net::SSH::Perl and X11 forwarding
- Index(es):