http://www.perlmonks.org?node_id=1028846


in reply to Is it possible to use X forwarding in Net::OpenSSH?

I have just uploaded to CPAN version 0.61_02 with support for X11 forwarding.

X11 forwarding has to be activated both on the constructor and on the individual commands as follows:

my $ssh = Net::OpenSSH->new($host, forward_X11 => 1); $ssh->system({forward_X11 => 1}, 'xterm') or die "Failed to run command: ". $ssh->error;