Saturday, September 09, 2006

Remote X application using ssh

My laptop at home
  • Ubuntu 6.01
  • IP: 213.114.153.11
  • DHCP
Machine at University
  • Debian
  • IP: 130.236.144.243
I want to run X-application from the machine at university and output display to my laptop. Following is what I did

On my laptop

  • Run xterm
  • echo $DISPLAY to verify the DISPLAY variable
  • Edit file /etc/ssh/ssh_config. Turn YES two following options
  1. ForwardX11 yes
  2. ForwardX11Trusted yes
  • $xhost 130.236.144.243
Login to the machine at university using ssh
  • $ssh -X username@130.236.144.243
  • $export DISPPLAY=213.114.153.11:0.0
  • xterm
It worked

Ref

No comments: