Applications run on a remote client in a very similar way but it is necessary to first establish a session on the remote client. This simply means that user of the local server must log in to the remote computer by entering the IP of the remote computer and entering a valid user ID and password.
Here is an example command to create a session: “ssh –Y John@machine1.myhost.com”. By entering the command, the remote host willl ask for a password and then show its prompt. On this prompt, the procedure for running an X11 program, which will run on the remote computer is similar to running a locally hosted program.