Link to home
Start Free TrialLog in
Avatar of uknet80
uknet80

asked on

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?

thanks
ASKER CERTIFIED SOLUTION
Avatar of XzKto
XzKto
Flag of Russian Federation image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
SOLUTION
Avatar of farzanj
farzanj
Flag of Canada image

Link to home
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
Start Free Trial
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.
You can certainly use
ssh -Y user@remoteHost

This would not show you the remote desktop to you, however
Avatar of uknet80
uknet80

ASKER

"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