

For X forwarding to work, you'll need to start XQuartz before making an SSH connection to the remote system.

Most Linux distributions have the X server installed, but if your personal computer is running Windows or macOS, you will most likely need to install and run an X server application. The X server program manages the interaction between the remote application (the X client) and your computer's hardware. For X forwarding in SSH to work, your personal computer must be running an X server program.
