LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   Trouble starting graphical programs on remote ssh x session (OpenSSH) [Arch Linux] (https://www.linuxquestions.org/questions/linux-software-2/trouble-starting-graphical-programs-on-remote-ssh-x-session-openssh-%5Barch-linux%5D-4175671200/)

DumbMahreeo 03-12-2020 08:31 AM

Trouble starting graphical programs on remote ssh x session (OpenSSH) [Arch Linux]
 
1 Attachment(s)
The problem is that whenever I try to open a graphical program on the said session, I get these errors and the program opens on the main machine

Code:

Xlib:  extension "XInputExtension" missing on display "localhost:10.0".
Xlib:  extension "RANDR" missing on display "localhost:10.0".
Xlib:  extension "XInputExtension" missing on display "localhost:10.0".
Xlib:  extension "XInputExtension" missing on display "localhost:10.0".

If you wander what steps I followed:
https://wiki.archlinux.org/index.php...X11_forwarding

vtel57 03-12-2020 05:17 PM

Please post your /etc/ssh/ssh.conf and /etc/ssh/sshd.conf files here.

scasey 03-12-2020 06:22 PM

And please confirm you followed this step, and what happened:
Quote:

If you get "Cannot open display" errors try the following command as the non root user:

$ xhost +
and what program are you trying to run?

DumbMahreeo 03-13-2020 10:09 AM

Quote:

Originally Posted by vtel57 (Post 6099926)
Please post your /etc/ssh/ssh.conf and /etc/ssh/sshd.conf files here.

I didn't find any ssh.conf or sshd.conf. I found the settings in ssh_config and sshd_config

This is my ssh_config https://pastebin.com/bpNaPyQr

This is my sshd_config https://pastebin.com/Y79LFBRq

DumbMahreeo 03-13-2020 10:09 AM

Quote:

Originally Posted by scasey (Post 6099942)
And please confirm you followed this step, and what happened:

and what program are you trying to run?

Nothing has changed. I'm trying to run opera, but I tried with vscodium too. Same error every time.

This is the output of the command.
Code:

access control disabled, clients can connect from any host

vtel57 03-13-2020 11:34 AM

Hmm... your ssh.conf and sshd.conf are not set up to use any ports. Port 22 is commented out.

Have you EVER been able to ssh on this machine to any other remote machine before?

Also, being Arch uses systemD and I'm not familiar with how it handles ssh, you may have to be patient and wait for some further advice from others.

Luck with this!

~Eric

michaelk 03-13-2020 12:08 PM

Quote:

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented. Uncommented options override the
# default value.
Since Port 22 is the default being commented out does not doing anything.

You posted you are running Arch but is that the server or client? Post each operating system.

I did find one a few thread with similar problem but no real solutions that I have found so far...

vtel57 03-13-2020 02:19 PM

> Since Port 22 is the default being commented out does not doing anything.

Interesting. Are you absolutely sure of that statement? I don't run ssh on port 22, so it's not even listed in my ssh.conf. I do have a port number that is added and NOT commented out. That is the port I ssh on. In my experience, the only time you comment out the port 22 line is when it's no longer being used.

If I'm in error, please educate me. Thanks.

~Eric

scasey 03-13-2020 02:24 PM

FYI all: The commented out entries in the ssh* config files are documenting the defaults.

I can’t otherwise help with the problem, as the only server I ssh to doesn’t have X installed at all.

vtel57 03-13-2020 02:50 PM

> FYI all: The commented out entries in the ssh* config files are documenting the defaults.

OK, then. Thanks @scasey and @michaelk. Must have been one of those over 50 year old neurons in my brain not firing. I just don't remember learning it that way.

Good to know, though. Learn something new every day. :)

scasey 03-13-2020 05:45 PM

Quote:

Originally Posted by vtel57 (Post 6100201)
> FYI all: The commented out entries in the ssh* config files are documenting the defaults.

OK, then. Thanks @scasey and @michaelk. Must have been one of those over 50 year old neurons in my brain not firing. I just don't remember learning it that way.

Good to know, though. Learn something new every day. :)

I knew it because this is at the top of my sshd_config (CentOS 7 server):
Code:

# The strategy used for options in the default sshd_config shipped with
# OpenSSH is to specify options with their default value where
# possible, but leave them commented.  Uncommented options override the
# default value.

There's a similar comment at the top of the ssh_config.

On my system, those are located in /etc/ssh/ and have the names I've used here.

Yes, the learning (hopefully) continues...my 70+ brain cells continue to absorb stuff ;)
(Not the number of cells — their age! )

vtel57 03-13-2020 09:52 PM

Quote:

Originally Posted by scasey (Post 6100240)
Yes, the learning (hopefully) continues...my 70+ brain cells continue to absorb stuff ;)
(Not the number of cells — their age! )


Indeed yes! Hopefully, they will be absorbing stuff for many more years to come. :)


STAY HEALTHY, brother!


~Eric

DumbMahreeo 03-14-2020 01:24 PM

For those who asked. Both the host and the client are on Arch, and yes, I'm able to use a remote shell, the only trouble I get is with graphical programs

scasey 03-14-2020 02:58 PM

I just noticed that I posted in #11 exactly what michaelk posted in #7. Don't know why I didn't see that before.
I apologize for the redundancy.

I guess I'm also not understanding the issue. OP, what do you mean by "the program opens on the main machine?" Which machine is the "main machine?"

DumbMahreeo 03-15-2020 06:57 AM

Quote:

Originally Posted by scasey (Post 6100460)
I just noticed that I posted in #11 exactly what michaelk posted in #7. Don't know why I didn't see that before.
I apologize for the redundancy.

I guess I'm also not understanding the issue. OP, what do you mean by "the program opens on the main machine?" Which machine is the "main machine?"

I'm in a ssh shell, connected to the host. Whenever I try to open a graphical program, the errors that I pasted in the first post occur and the program opens on the host machine.


All times are GMT -5. The time now is 09:26 AM.