How to use X to connect to remote linux desktop

From shell can I used X –query x.x.x.x :1 to connect to remote Linux desktop? If the syntax is wrong, what is the right way?

Who is Participating?
XzKtoConnect With a Mentor Commented:
I think you are looking for something like X11vnc.
farzanjConnect With a Mentor Commented:
You need some kind of client server mechanism since the desktop is remote.
One way to set it up is VNC-server on the target machine and VNC viewer on the client machine.

Here are the instructions
You can ssh -y user@remote and then when you execute a graphical command it will be sent through the X11 tunnel (-y -x) to the X server from which you ssh.
Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

You can certainly use
ssh -Y user@remoteHost

This would not show you the remote desktop to you, however
uknet80Author Commented:
"ssh -Y user@remoteHost" is for lunching remote application example firefox. I need to lunch remote desktop server from linux shell to remote linux X windows desktop.
export DISPLAY="remoteip:0.0"
on the remoteip, xhost add the other as an allowed source
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.