Trouble starting graphical programs on remote ssh x session (OpenSSH) [Arch Linux]
Linux - SoftwareThis 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
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
# 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...
> 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.
> 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.
> 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! )
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.