Hello,
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
Everything is allright with SSH, sshd_config, ssh_config...
I readed many advices from internet sites, nothing to do, it does'nt work with this eternal message above.
Thanks for a lead.
ajh-valmer wrote:
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
$ grep -i X11Forwarding /etc/ssh/sshd_config X11Forwarding yes # X11Forwarding no
then when you login ( ssh -X ) export DISPLAY=:10
or
export DISPLAY=localhost:10
if still an issue check what is loclahost in /etc/hosts
On Tuesday 16 March 2021 12:31:22 deloptes wrote:
ajh-valmer wrote:
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
Thanks for your help.
$ grep -i X11Forwarding /etc/ssh/sshd_config X11Forwarding yes :
OK.
then when you login ( ssh -X ) export DISPLAY=:10 or export DISPLAY=localhost:10
It's what I did.
if still an issue check what is loclahost in /etc/hosts :
cat /etc/hosts (on the remote server) : 127.0.0.1 localhost localhost.localdomain
And always the message : "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
Anno domini 2021 Tue, 16 Mar 12:15:30 +0100 ajh-valmer scripsit:
Hello,
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
ssh -X user@somwhere
Nik
Everything is allright with SSH, sshd_config, ssh_config...
I readed many advices from internet sites, nothing to do, it does'nt work with this eternal message above.
Thanks for a lead. ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Tuesday 16 March 2021 12:45:39 Dr. Nikolaus Klepp wrote:
Anno domini 2021 Tue, 16 Mar 12:15:30 +0100 ajh-valmer scripsit:
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
ssh -X user@somwhere :
It's what I do...
"xauth" should be installed on remote computer :
xauth is installed on the remote computer.
Anno domini 2021 Tue, 16 Mar 14:55:00 +0100 ajh-valmer scripsit:
X11 connection rejected because of wrong authentication.
Ok. Then try this:
https://unix.stackexchange.com/questions/162979/annoying-message-x11-connect...
On Tuesday 16 March 2021 15:59:21 Dr. Nikolaus Klepp wrote:
Anno domini 2021 Tue, 16 Mar 14:55:00 +0100 ajh-valmer scripsit:
X11 connection rejected because of wrong authentication.
Ok. Then try this:
https://unix.stackexchange.com/questions/162979/annoying-message-x11-connect...
Made, and always : "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:11.0"
This problem seems irresolvable for me...
André
ajh-valmer wrote:
Made, and always : "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:11.0"
This problem seems irresolvable for me...
the display is localhost:10.0
unless you connect second time (see X11DisplayOffset)
And you access with :10 (no .0 at the end) short: ~$ export DISPLAY=:10 ~$ xeyes
worked always and worked this time as well Actually I do not even have to export DISPLAY - it is set automatically by SSH
PS: If you change SSH config, you have to restart sshd and connect again (ssh -X)
On Wednesday 17 March 2021 00:04:25 deloptes wrote:
ajh-valmer wrote:
Made, and always : "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:11.0" This problem seems irresolvable for me...
the display is localhost:10.0 unless you connect second time (see X11DisplayOffset) And you access with :10 (no .0 at the end) short: ~$ export DISPLAY=:10 ~$ xeyes worked always and worked this time as well Actually I do not even have to export DISPLAY - it is set automatically by SSH PS: If you change SSH config, you have to restart sshd and connect again (ssh -X)
Hello,
Thanks for your help.
# export DISPLAY=10 # echo $DISPLAY 10 # xeyes Error: Can't open display: 10
I'm with ssh -X sshd_config : X11DisplayOffset 10
Do I have to install a Xorg on the server ? # lspci VGA compatible controller: Matrox Electronics Systems Ltd. MGA G200eW WPCM450
Have a good day,
André
On Wednesday 17 March 2021 20:06:11 deloptes wrote:
ajh-valmer wrote:
# export DISPLAY=10 # echo $DISPLAY 10
export DISPLAY=:10 you need some xstuff (xauth for example you need on the client side) what you also could do is use -v option or -vv or -vvv
Must be written on the SSH server ? : export DISPLAY=:10 root@association-starinux:~# echo $DISPLAY :10 # xclock Error: Can't open display: :10 The DISPLAY is never accepted, whatever the number.
# xauth -v Using authority file /root/.Xauthority # xauth> What am I supposed to write?
Thanks,
André
ajh-valmer wrote:
# xauth -v Using authority file /root/.Xauthority # xauth> What am I supposed to write?
are you logging in as root or normal user and doing su/sudo? later would explain all of your troubles it is complicated to login as normal user and run X app as root.
On Thursday 18 March 2021 03:33:55 deloptes wrote:
ajh-valmer wrote:
# xauth -v Using authority file /root/.Xauthority # xauth> What am I supposed to write?
are you logging in as root or normal user and doing su/sudo? later would explain all of your troubles it is complicated to login as normal user and run X app as root.
Yes, true, difficult Xorg graphic relation between user and root.
From the client SSH, as user, I type : $ ssh -X -p <port> root@<server-IP> and I'm connected.
If I type : $ ssh -X -p <port> normal-user@<server-IP> I'm connected with this message : "/etc/ssh/sshrc : line 13 : /etc/ssh/logsshsftp.sh : Permission not granted"
$ xclock "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:2.0" sniff :-(
Thanks.
ajh-valmer wrote:
Yes, true, difficult Xorg graphic relation between user and root.
From the client SSH, as user, I type : $ ssh -X -p <port> root@<server-IP> and I'm connected.
If I type : $ ssh -X -p <port> normal-user@<server-IP> I'm connected with this message : "/etc/ssh/sshrc : line 13 : /etc/ssh/logsshsftp.sh : Permission not granted"
$ xclock "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:2.0" sniff :-(
All of this is crap - what is sshrc and logsshsftp.sh why localhost:2.0?
try creating a fresh normal user and try with that user. You have to review this configuration.
On Thu, 18 Mar 2021 21:02:03 +0100 deloptes deloptes@gmail.com wrote:
ajh-valmer wrote:
Yes, true, difficult Xorg graphic relation between user and root.
From the client SSH, as user, I type : $ ssh -X -p <port> root@<server-IP> and I'm connected.
If I type : $ ssh -X -p <port> normal-user@<server-IP> I'm connected with this message : "/etc/ssh/sshrc : line 13 : /etc/ssh/logsshsftp.sh : Permission not granted"
$ xclock "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:2.0" sniff :-(
All of this is crap - what is sshrc and logsshsftp.sh why localhost:2.0?
try creating a fresh normal user and try with that user. You have to review this configuration.
/etc/ssh/sshrc is a script that is executed upon ssh login apparently ajh-valmer has some crap in here that breaks normal ssh -X functionality
Nick Koretsky wrote:
/etc/ssh/sshrc is a script that is executed upon ssh login apparently ajh-valmer has some crap in here that breaks normal ssh -X functionality
sounds like Ubuntu crap - for the rest it is not helpful to explain the obvious, but I can think that it is not obvious for all.
if it's Ubuntu I don't know
On Friday 19 March 2021 00:36:55 deloptes wrote:
Nick Koretsky wrote:
/etc/ssh/sshrc is a script that is executed upon ssh login apparently ajh-valmer has some crap in here that breaks normal ssh -X functionality
sounds like Ubuntu crap - for the rest it is not helpful to explain the obvious, but I can think that it is not obvious for all. if it's Ubuntu I don't know
"/etc/ssh/sshrc" and "/etc/ssh/logsshsftp.sh" are not the problem, they only add the connections, date, time with SSH : 19-03-2021--10h38m <IP-server> The problem is elsewhere.
The important questions are : - Do I have to install a X server on the computer-server SSH ? - Why the DISPLAY regardless of the number is never accepted ?
Thanks,
André
ajh.valmer@free.fr wrote:
"/etc/ssh/sshrc" and "/etc/ssh/logsshsftp.sh" are not the problem, they only add the connections, date, time with SSH : 19-03-2021--10h38m <IP-server> The problem is elsewhere.
Seems like - I just tried with a quite clean machine
Debian GNU/Linux comes with ABSOLUTELY NO WARRANTY, to the extent permitted by applicable law. Last login: Fri Mar 19 21:20:28 2021 from 192.168.40.68 /usr/bin/xauth: file /home/user/.Xauthority does not exis
The important questions are :
- Do I have to install a X server on the computer-server SSH ?
you install what is required to operate the application - dependencies should tell you what.
# apt-get install x11-apps Reading package lists... Done Building dependency tree Reading state information... Done The following additional packages will be installed: libice6 libsm6 libxaw7 libxcursor1 libxfixes3 libxft2 libxkbfile1 libxmu6 libxrender1 libxt6 x11-common xbitmaps
- Why the DISPLAY regardless of the number is never accepted ?
Because we concluded that your setup is broken and you have to repair it.
On Friday 19 March 2021 21:26:30 deloptes wrote:
ajh.valmer@free.fr wrote: /usr/bin/xauth: file /home/user/.Xauthority does not exist :
.Xauthority exist under /root/
Do I have to install a X server on the computer-server SSH ?
x11-apps, x11-common, xbitmaps :
are installed.
Why the DISPLAY regardless of the number is never accepted ? :
Because we concluded that your setup is broken and you have to repair it.
What do you mean by "my setup is broken" ? (which setup ?).
Cheers,
André
ajh-valmer wrote:
/usr/bin/xauth: file /home/user/.Xauthority does not exist :
.Xauthority exist under /root/
Do I have to install a X server on the computer-server SSH ?
x11-apps, x11-common, xbitmaps :
are installed.
Why the DISPLAY regardless of the number is never accepted ? :
Because we concluded that your setup is broken and you have to repair it.
What do you mean by "my setup is broken" ? (which setup ?).
do ssh -vvv -X root@ ....
and post the output (as attachment, please)
On Saturday 20 March 2021 08:19:32 deloptes wrote:
What do you mean by "my setup is broken" ? (which setup ?).
do ssh -vvv -X root@ .... and post the output (as attachment, please)
Hello,
Here joint.
ssh -p <port> -v -X root@<IP-server>
Three v gives too much informations.
Cheers André
Hi!
Anno domini 2021 Sat, 20 Mar 15:31:02 +0100 ajh-valmer scripsit:
On Saturday 20 March 2021 08:19:32 deloptes wrote:
What do you mean by "my setup is broken" ? (which setup ?).
do ssh -vvv -X root@ .... and post the output (as attachment, please)
Hello,
Here joint.
ssh -p <port> -v -X root@<IP-server>
Three v gives too much informations.
Cheers André
Tis is the version where X11 forwarding works or where it does not work?
Nik
On Saturday 20 March 2021 15:55:32 Dr. Nikolaus Klepp wrote:
ssh -p <port> -v -X root@<IP-server> Three verbose gives too much informations.
Tis is the version where X11 forwarding works or where it does not work?
One or two or three -v "verbose" doesn't give informations about X11 forwarding.
André
Anno domini 2021 Sat, 20 Mar 19:04:02 +0100 ajh-valmer scripsit:
On Saturday 20 March 2021 15:55:32 Dr. Nikolaus Klepp wrote:
ssh -p <port> -v -X root@<IP-server> Three verbose gives too much informations.
Tis is the version where X11 forwarding works or where it does not work?
One or two or three -v "verbose" doesn't give informations about X11 forwarding.
Please attach a logfile that you get from a session where X11 forwarding does not work and one where it does work. You'll need to include the output from the (not) working X11 client, too. e.g.:
ssh -v -X user@server xmessage xxx
Nik
André ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
On Saturday 20 March 2021 21:04:11 Dr. Nikolaus Klepp wrote:
Please attach a logfile that you get from a session where X11 forwarding
does not work and one where it does work. You'll need to include the output from the (not) working X11 client, too. e.g.:
ssh -v -X root@server xmessage xxx
ssh -p <port> -v -X root@<IP-server> xmessage test
debug1: /etc/ssh/ssh_config line 18: Applying options for * debug1: Connecting to IP [IP] port <number> debug1: Connection established. debug1: Sending command: xmessage test debug1: client_input_channel_open: ctype x11 rchan 4 win 65536 max 16384 debug1: client_request_x11: request from 127.0.0.1 37832 debug1: channel 1: new [x11] debug1: confirm x11 X11 connection rejected because of wrong authentication. debug1: channel 1: free: x11, nchannels 2 Error: Can't open display: localhost:2.0 debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 2964, received 2920 bytes, in 0.4 seconds Bytes per second: sent 6874.4, received 6772.4 debug1: Exit status 1
Anno domini 2021 Sat, 20 Mar 23:08:36 +0100 ajh-valmer scripsit:
[...] Error: Can't open display: localhost:2.0
Ok, with that user please try:
ssh -X user|server "DISPLAY=:10 xmessage xxx"
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 2964, received 2920 bytes, in 0.4 seconds Bytes per second: sent 6874.4, received 6772.4 debug1: Exit status 1 ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
Anno domini 2021 Sat, 20 Mar 23:08:36 +0100 ajh-valmer scripsit:
[...] Error: Can't open display: localhost:2.0
Ok, with that user please try:
ssh -X user@server "DISPLAY=:10 xmessage xxx"
debug1: client_input_channel_req: channel 0 rtype exit-status reply 0 debug1: client_input_channel_req: channel 0 rtype eow@openssh.com reply 0 debug1: channel 0: free: client-session, nchannels 1 Transferred: sent 2964, received 2920 bytes, in 0.4 seconds Bytes per second: sent 6874.4, received 6772.4 debug1: Exit status 1 ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...
ajh-valmer wrote:
On Saturday 20 March 2021 23:22:33 Dr. Nikolaus Klepp wrote:
Ok, with that user please try: ssh -X user@server "DISPLAY=:10 xmessage xxx"
Error: Can't open display: :10
based on your previous input your problem is: X11 connection rejected because of wrong authentication.
not clear what exactly is wrong, but there are numerous threads with this for example https://superuser.com/questions/805725/how-do-i-debug-x11-connection-rejecte...
This is also strange - load > 8.0
debug1: client_input_global_request: rtype hostkeys-00@openssh.com want_reply 0 debug1: Requesting X11 forwarding with authentication spoofing. debug1: Requesting authentication agent forwarding. debug1: Sending environment. debug1: Sending env LANG = fr_FR@euro Welcome to Ubuntu 18.04.5 LTS (GNU/Linux 4.15.0-136-generic x86_64) * Documentation: https://help.ubuntu.com * Management: https://landscape.canonical.com * Support: https://ubuntu.com/advantage System information disabled due to load higher than 8.0 0 paquet peut etre mis à jour. 0 of these updates are security updates. New release '20.04.2 LTS' available. Run 'do-release-upgrade' to upgrade to it. No mail.
Oh, I forgot: "xauth" should be installed on remote computer.
Anno domini 2021 Tue, 16 Mar 12:15:30 +0100 ajh-valmer scripsit:
Hello,
I cannot open a graphic tool on my Debian TDE, with a terminal and SSH, from a remote server, I receive this message : # xeyes "X11 connection rejected because of wrong authentication. Error: Can't open display: localhost:10.0"
Everything is allright with SSH, sshd_config, ssh_config...
I readed many advices from internet sites, nothing to do, it does'nt work with this eternal message above.
Thanks for a lead. ____________________________________________________ tde-users mailing list -- users@trinitydesktop.org To unsubscribe send an email to users-leave@trinitydesktop.org Web mail archive available at https://mail.trinitydesktop.org/mailman3/hyperkitty/list/users@trinitydeskto...