Oh something else you cannot ssh with an account, su root then launch an X program... and is root allowed to connect with ssh etc...
I would start by using my connection and launch xclock & if that works then look if not to do with root cannot use ssh, if thats ok, then as root give your PC IP address to DISPLAY like (in ksh...) export DISPLAY=<PC IP>:0.0 Let me think a bit more for what else, but just got home after a completely OT seminary so I am a bit out of phase...
Addendum as it may not be very clear (trying my best though...)
To see why you need to export:
As you connect using X , in ssh from your PC, it will receive the DISPLAY information from the client in ssh, NOT your IP but something like
What you have suggests its using your ssh connection DISPLAY information, but that doesnt work in ssh ( unless someone gives me the recipy...) that display is yours and cannot be used by someone else...
Last edited by vbe; 01-29-2019 at 01:09 PM..
Reason: addendum
Good thing to mention is that newer xorg does not listen by default.
Check on the box you are connecting from (the box running the X server) for X server startup options -nolisten tcp directive.
If it's configured like that, you will not be able to export DISPLAY=<IP box running the X>:0
So if ssh is configured with forwarding (looks like it it is), only encapsulation will work (-Y -X).
But encapsulation will not work when switching users in shell as vbe pointed out.
Check out this example, after which you can export DISPLAY from mentioned host, in this case from 'glitch' to 'hickup' using TCP way, with X server listening on port 6000 and xhost added.
So i added the the X startup option under my seat, since i'm using lightdm, you might be using other display manager so check its options.
You might not want to keep that setting, it is not default for a reason, but using export DISPLAY and su-ing around will keep working, unless - is used with su command.
Hi there,
I am trying to understanding the difference between X11, host- based versus user-based access controls. And how vulnerability can the X11 settings be and why it is recommended to turn it off. (1 Reply)
I had a simple automation process to take config backup from san switches to windows via SSH. This can be accomplished using plink.
My script was working fine earlier but from last few days it is not collecting data and the error which i am getting is below.
"":confused:
I have done the... (6 Replies)
Hello Friends,
I have observed one recent issue about ftp from windows to Linux.
Initially we had Solaris unix and any file sent from windows to solaris via ftp (binary or ascii) worked smoothly.
Say for e.g if I sent a shell script to soalris from windows, that script used to run corectly.... (17 Replies)
Greetings Experts,
I need to pass a parameter to ksh and the value is windows path eg: sh abc.txt C:\Users\chill3chee\Desktop
No matter I try with \ delimiter, still could not get this exact value assigned to the shell variable which was checked with echo. Tried with using... (2 Replies)
Hi,
I have a desktop it's about seven to eight years old. It has Windows XP. When I open I.E or Firefox or Google Chrome, I get so many other popup.
I did install CClearner and spybot search & Destroy. But still I am getting lot of popup. crazy picture of girls comes on the screen.
... (8 Replies)
I recently got myself a new 2 TB drive.
However everytime I connect the drive it doesn't have a drive letter, so I have to open the diskmgmt.msc and manually reassign it (EVERY TIME I connect the Drive...)
Also the Drive appears to have no Recycle Bin.
It always prompts to instantly delete... (4 Replies)