ssh(1) -Y username@machine_name
OpenSSH SSH client (remote login program)
-Y      Enables trusted X11 forwarding.  Trusted X11 forwardings are not subjected to the X11 SECURITY
        extension controls.
ssh connects and logs into the specified hostname (with optional user name).  The user must prove his/her
identity to the remote machine using one of several methods depending on the protocol version used (see

If command is specified, it is executed on the remote host instead of a login shell.
source manpages: ssh