Sunday, April 3, 2011

Export DISPLAY through SSH to local Linux/Unix Machine

Prerequisites

1) DISPLAY envrionment variables not set on remote host (vmxdb01 in this example)
2) X Windows installed on remote host (on vmxdb01, run 'yum groupinstall "X Window System"' to install the X-windows



donghua@rh6:/opt/vmware/repo$ ssh oracle@vmxdb01
oracle@vmxdb01's password:
Last login: Sun Apr 3 21:38:57 2011 from rh6.lab.dbaglobe.com
[oracle@vmxdb01 ~]$ env|grep DISPLAY
[oracle@vmxdb01 ~]$ exit
logout
Connection to vmxdb01 closed.



donghua@rh6:/opt/vmware/repo$ ssh -X oracle@vmxdb01
oracle@vmxdb01's password:
Last login: Sun Apr 3 21:48:30 2011 from rh6.lab.dbaglobe.com
[oracle@vmxdb01 ~]$ env|grep DISPLAY
DISPLAY=localhost:10.0
[oracle@vmxdb01 ~]$ exit
logout
Connection to vmxdb01 closed.
donghua@rh6:/opt/vmware/repo$

No comments:

Post a Comment