Beefy Boxes and Bandwidth Generously Provided by pair Networks
Think about Loose Coupling
 
PerlMonks  

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

by salva (Abbot)
on Apr 16, 2013 at 09:07 UTC ( #1028846=note: print w/replies, xml ) Need Help??


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;

Replies are listed 'Best First'.
Re^2: Is it possible to use X forwarding in Net::OpenSSH?
by gold_mark (Initiate) on Apr 20, 2013 at 18:04 UTC
    Thanks a lot. I tried it in simple case and it works.
    Will try full scenario later.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1028846]
help
Chatterbox?
[LanX]: any news from tye ' s search?
[MidLifeXis]: Ugh - who else?
[Discipulus]: so the right term is 'gired'
[Discipulus]: look at ot by karl
Discipulus gired: adj the work position that stands between hired and fired..
LanX recommends inner immigration, work less hard and enjoy pay roll
[MidLifeXis]: ahh, yeah, didn't look through nodes yet today.
[erix]: haha
[MidLifeXis]: Ahh well, time to get back to it, so there isn't a reason to take that choice out of my hands :-)
[LanX]: Inner emigration

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (11)
As of 2017-03-23 12:49 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (286 votes). Check out past polls.