Mostly technical stuff with some interesting moments of life

Running Matlab Remotely: ssh -X

4 comments
I wanted to run Matlab by logging into the university account remotely from my machine. Everything went fine except for the graphics. Matlab started in no graphics mode.

After bit of a search I found the solution. You have to set the X11 forwarding in you ssh configuration file. Here's how to do it.

1. cd /etc/ssh
2. sudo vi ssh_config
3. uncomment the lines "ForwardAgent" and "ForwardX11". Set their values to "yes"
4. sudo vi sshd_config
5. uncomment "X11Forwarding" and set it value to "yes" as well.

that's it and you are good to go.

Type ssh -X username@domain

To test if everything works fine try running xclock once you log in. It should open up a graphical clock window.

4 comments :

  1. Thanks! This was exactly what I was looking for!

    ReplyDelete
  2. Thank you! I've been looking around on the web for hours and finally found your working solution!

    ReplyDelete
  3. Thank you, that was exactly what i was looking for.

    ReplyDelete