For ssh connections this procedure is not required, as X-forwarding for ssh is enabled by default in /etc/ssh_config, so you don't even have to add a "-X" command-line parameter