LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 03-12-2020, 08:31 AM   #1
DumbMahreeo
LQ Newbie
 
Registered: Aug 2019
Posts: 9

Rep: Reputation: Disabled
Trouble starting graphical programs on remote ssh x session (OpenSSH) [Arch Linux]


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
Attached Thumbnails
Click image for larger version

Name:	photo_2020-03-12_10-18-56.jpg
Views:	26
Size:	22.5 KB
ID:	32772  
 
Old 03-12-2020, 05:17 PM   #2
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Please post your /etc/ssh/ssh.conf and /etc/ssh/sshd.conf files here.
 
Old 03-12-2020, 06:22 PM   #3
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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?
 
Old 03-13-2020, 10:09 AM   #4
DumbMahreeo
LQ Newbie
 
Registered: Aug 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by vtel57 View Post
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
 
Old 03-13-2020, 10:09 AM   #5
DumbMahreeo
LQ Newbie
 
Registered: Aug 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
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

Last edited by DumbMahreeo; 03-13-2020 at 10:16 AM.
 
Old 03-13-2020, 11:34 AM   #6
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
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
 
Old 03-13-2020, 12:08 PM   #7
michaelk
Moderator
 
Registered: Aug 2002
Posts: 25,702

Rep: Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896Reputation: 5896
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...
 
2 members found this post helpful.
Old 03-13-2020, 02:19 PM   #8
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
> 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
 
Old 03-13-2020, 02:24 PM   #9
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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.

Last edited by scasey; 03-13-2020 at 02:26 PM.
 
1 members found this post helpful.
Old 03-13-2020, 02:50 PM   #10
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
> 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.
 
1 members found this post helpful.
Old 03-13-2020, 05:45 PM   #11
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
Quote:
Originally Posted by vtel57 View Post
> 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! )

Last edited by scasey; 03-13-2020 at 06:33 PM.
 
Old 03-13-2020, 09:52 PM   #12
vtel57
Senior Member
 
Registered: Jul 2006
Location: USA
Distribution: Slackware64 - 14.2 w/ Xfce
Posts: 1,631

Rep: Reputation: 489Reputation: 489Reputation: 489Reputation: 489Reputation: 489
Quote:
Originally Posted by scasey View Post
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
 
1 members found this post helpful.
Old 03-14-2020, 01:24 PM   #13
DumbMahreeo
LQ Newbie
 
Registered: Aug 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
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

Last edited by DumbMahreeo; 03-14-2020 at 01:26 PM.
 
Old 03-14-2020, 02:58 PM   #14
scasey
LQ Veteran
 
Registered: Feb 2013
Location: Tucson, AZ, USA
Distribution: CentOS 7.9.2009
Posts: 5,727

Rep: Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211Reputation: 2211
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?"

Last edited by scasey; 03-14-2020 at 03:00 PM.
 
Old 03-15-2020, 06:57 AM   #15
DumbMahreeo
LQ Newbie
 
Registered: Aug 2019
Posts: 9

Original Poster
Rep: Reputation: Disabled
Quote:
Originally Posted by scasey View Post
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.

Last edited by DumbMahreeo; 03-15-2020 at 08:57 AM.
 
  


Reply

Tags
remote session, ssh, xorg



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Unable to launch "cinnamon-session-cinnamon" X session "cinnamon-session-cinnamon" -found; Falling back to default "session." xxxindigo Linux Mint 22 09-01-2019 09:21 AM
Session key renegotiation if session lasts longer than configured (e.g. an hour) then session keys needs to be renegotiated. dakshinya Linux - Newbie 1 02-04-2016 04:15 PM
[SOLVED] Arch Linux Newbie : Cinnamon session not starting mangatmodi Linux - Newbie 1 11-16-2012 09:07 AM
LXer: Why a Distro-Provided OpenSSH is Better than a Third-Party OpenSSH LXer Syndicated Linux News 0 02-02-2011 07:50 AM
[SOLVED] Starting File System .. Starting File System .. Starting File System .. Starting File rmknox Linux - Newbie 3 08-15-2010 11:30 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 01:28 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration