Example
/etc/ssh/ssh_config
Host [HOST]
ForwardX11 yes
ForwardX11Trusted yes
ServerAliveInterval 10
Reference
https://www.ssh.com/ssh/config/
https://stackoverflow.com/questions/50035949/macos-high-sierra-and-x11-forwarding
https://apple.stackexchange.com/questions/36690/how-can-i-prevent-an-ssh-session-from-hanging-in-os-x-terminal
https://askubuntu.com/questions/9920/x11-forwarding-over-gnu-screen-is-it-possible