Do you have a question? Post it now! No Registration Necessary. Now with pictures!
- Posted on
- Net::SSH::Perl and X11 forwarding
- Radomir Hejl
May 19, 2005, 1:19 am
rate this thread
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
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";
Running the application from the command line or through ssh commands
wrapper Net::SSH is ok.
Does anyone have any suggestions?
Thanks Radek H.