How to Set ssh -X for Mac to Ubuntu

$ 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



Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store
Paul Xiong

Paul Xiong

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