How to Set ssh -X for Mac to Ubuntu

Paul Xiong
Jun 12, 2022


  1. Modify following config on you ssh server and make it effective immediately:
$ vim /etc/ssh/

2. Most Likely, you don’t need to check following if you have GUI linux installed, but worth a check anyway:

$ which xauth

3. On the client side:

$ ssh -X user@server

Traboule tips:

If running into issue, do this on clien to see the errors:

$ ssh -v -X user@server

Should you miss DISPLAY on your MAC, do the installation will fix it:

$ brew install xquartz



Paul Xiong

Coding, implementing, optimizing ML annotation with self-supervised learning, TLDR: doctor’s labeling is the 1st priority for our Cervical AI project.