X11 forwarding from Linux Red Hat to Windows 10 running OpenSSH

The name of the pictureThe name of the pictureThe name of the pictureClash Royale CLAN TAG#URR8PPP

up vote
-1
down vote

favorite

I’ve installed OpenSSH on my Windows 10 machine and can now run ssh -X root@123.456.789.0 and log in. That works fine. I can even use vim to edit files on my Red Hat server, including /etc/ssh/sshd_config to ensure it has XllForwarding yes and whatnot in it.

However, whenever I try to run anything visual, I get errors. gedit .bashrc gives me Gtk-WARNING **: cannot open display:, and firefox gives me Error: GDK_BACKEND does not match available displays.

I’ve done a fair bit of reading and experimentation on this displays issue. echo DISPLAY yields nothing, which means the display isn’t getting set. export DISPLAY=:0 from my secure shell leads firefox and gedit to run without apparent errors, but no windows are displayed on the client side. Setting the DISPLAY to anything else causes errors where the server complains it can’t open the display with that name. I’ve tried IP addresses:ports, everything in these names.

Somewhere along the line someone said you have to set DISPLAY=client_IP:0 on the client side before sshing, but when I do this, I get a bunch of errors when I try to ssh to my server:
“CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied, please try again.” (repeated three times before the client gives up)
If I set DISPLAY=, thereby deleting it on the client side, I can ssh in to the server again, but back where I was with regard to displaying things.

I know OpenSSH is supposed to support GUI applications. What am I missing?

share|improve this question

  • 3

    An X11 server running on Windows 10?
    – A.B
    Nov 28 at 22:34

  • You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
    – RubberStamp
    Nov 28 at 22:41

  • Plus you dont forward firefox, you port forward
    – Panther
    Nov 28 at 22:42

  • So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
    – pvlkmrv
    Nov 28 at 22:42

  • I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
    – pvlkmrv
    Nov 28 at 22:44

up vote
-1
down vote

favorite

I’ve installed OpenSSH on my Windows 10 machine and can now run ssh -X root@123.456.789.0 and log in. That works fine. I can even use vim to edit files on my Red Hat server, including /etc/ssh/sshd_config to ensure it has XllForwarding yes and whatnot in it.

However, whenever I try to run anything visual, I get errors. gedit .bashrc gives me Gtk-WARNING **: cannot open display:, and firefox gives me Error: GDK_BACKEND does not match available displays.

I’ve done a fair bit of reading and experimentation on this displays issue. echo DISPLAY yields nothing, which means the display isn’t getting set. export DISPLAY=:0 from my secure shell leads firefox and gedit to run without apparent errors, but no windows are displayed on the client side. Setting the DISPLAY to anything else causes errors where the server complains it can’t open the display with that name. I’ve tried IP addresses:ports, everything in these names.

Somewhere along the line someone said you have to set DISPLAY=client_IP:0 on the client side before sshing, but when I do this, I get a bunch of errors when I try to ssh to my server:
“CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied, please try again.” (repeated three times before the client gives up)
If I set DISPLAY=, thereby deleting it on the client side, I can ssh in to the server again, but back where I was with regard to displaying things.

I know OpenSSH is supposed to support GUI applications. What am I missing?

share|improve this question

  • 3

    An X11 server running on Windows 10?
    – A.B
    Nov 28 at 22:34

  • You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
    – RubberStamp
    Nov 28 at 22:41

  • Plus you dont forward firefox, you port forward
    – Panther
    Nov 28 at 22:42

  • So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
    – pvlkmrv
    Nov 28 at 22:42

  • I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
    – pvlkmrv
    Nov 28 at 22:44

up vote
-1
down vote

favorite

up vote
-1
down vote

favorite

I’ve installed OpenSSH on my Windows 10 machine and can now run ssh -X root@123.456.789.0 and log in. That works fine. I can even use vim to edit files on my Red Hat server, including /etc/ssh/sshd_config to ensure it has XllForwarding yes and whatnot in it.

However, whenever I try to run anything visual, I get errors. gedit .bashrc gives me Gtk-WARNING **: cannot open display:, and firefox gives me Error: GDK_BACKEND does not match available displays.

I’ve done a fair bit of reading and experimentation on this displays issue. echo DISPLAY yields nothing, which means the display isn’t getting set. export DISPLAY=:0 from my secure shell leads firefox and gedit to run without apparent errors, but no windows are displayed on the client side. Setting the DISPLAY to anything else causes errors where the server complains it can’t open the display with that name. I’ve tried IP addresses:ports, everything in these names.

Somewhere along the line someone said you have to set DISPLAY=client_IP:0 on the client side before sshing, but when I do this, I get a bunch of errors when I try to ssh to my server:
“CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied, please try again.” (repeated three times before the client gives up)
If I set DISPLAY=, thereby deleting it on the client side, I can ssh in to the server again, but back where I was with regard to displaying things.

I know OpenSSH is supposed to support GUI applications. What am I missing?

share|improve this question

I’ve installed OpenSSH on my Windows 10 machine and can now run ssh -X root@123.456.789.0 and log in. That works fine. I can even use vim to edit files on my Red Hat server, including /etc/ssh/sshd_config to ensure it has XllForwarding yes and whatnot in it.

However, whenever I try to run anything visual, I get errors. gedit .bashrc gives me Gtk-WARNING **: cannot open display:, and firefox gives me Error: GDK_BACKEND does not match available displays.

I’ve done a fair bit of reading and experimentation on this displays issue. echo DISPLAY yields nothing, which means the display isn’t getting set. export DISPLAY=:0 from my secure shell leads firefox and gedit to run without apparent errors, but no windows are displayed on the client side. Setting the DISPLAY to anything else causes errors where the server complains it can’t open the display with that name. I’ve tried IP addresses:ports, everything in these names.

Somewhere along the line someone said you have to set DISPLAY=client_IP:0 on the client side before sshing, but when I do this, I get a bunch of errors when I try to ssh to my server:
“CreateProcessW failed error:2
ssh_askpass: posix_spawn: No such file or directory
Permission denied, please try again.” (repeated three times before the client gives up)
If I set DISPLAY=, thereby deleting it on the client side, I can ssh in to the server again, but back where I was with regard to displaying things.

I know OpenSSH is supposed to support GUI applications. What am I missing?

ssh windows openssh

share|improve this question

share|improve this question

share|improve this question

share|improve this question

edited Nov 28 at 22:50

asked Nov 28 at 22:25

pvlkmrv

993

993

  • 3

    An X11 server running on Windows 10?
    – A.B
    Nov 28 at 22:34

  • You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
    – RubberStamp
    Nov 28 at 22:41

  • Plus you dont forward firefox, you port forward
    – Panther
    Nov 28 at 22:42

  • So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
    – pvlkmrv
    Nov 28 at 22:42

  • I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
    – pvlkmrv
    Nov 28 at 22:44

  • 3

    An X11 server running on Windows 10?
    – A.B
    Nov 28 at 22:34

  • You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
    – RubberStamp
    Nov 28 at 22:41

  • Plus you dont forward firefox, you port forward
    – Panther
    Nov 28 at 22:42

  • So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
    – pvlkmrv
    Nov 28 at 22:42

  • I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
    – pvlkmrv
    Nov 28 at 22:44

3

3

An X11 server running on Windows 10?
– A.B
Nov 28 at 22:34

An X11 server running on Windows 10?
– A.B
Nov 28 at 22:34

You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
– RubberStamp
Nov 28 at 22:41

You need an X11 server running on your MS Windows machine… cygwin was what I used when I last ran Windows… but it’s been a really long time since I’ve used MS Windows, so my information may be out of date.
– RubberStamp
Nov 28 at 22:41

Plus you dont forward firefox, you port forward
– Panther
Nov 28 at 22:42

Plus you dont forward firefox, you port forward
– Panther
Nov 28 at 22:42

So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
– pvlkmrv
Nov 28 at 22:42

So when I run ssh -X user@IP from a linux box, that works because linux just has a daemon running to get back the information necessary to display the app, and I need a separate program listening on that port on my client? Does that come packaged in OpenSSH?
– pvlkmrv
Nov 28 at 22:42

I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
– pvlkmrv
Nov 28 at 22:44

I don’t know what you mean by port forward. When I’ve sshed in to one linux computer from an other, I can just run programs from the command line in the client much as I would do were I physically on the server.
– pvlkmrv
Nov 28 at 22:44

active

oldest

votes

Your Answer

StackExchange.ready(function() {
var channelOptions = {
tags: “”.split(” “),
id: “106”
};
initTagRenderer(“”.split(” “), “”.split(” “), channelOptions);

StackExchange.using(“externalEditor”, function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using(“snippets”, function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: ‘answer’,
convertImagesToLinks: false,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: null,
bindNavPrevention: true,
postfix: “”,
imageUploader: {
brandingHtml: “Powered by u003ca class=”icon-imgur-white” href=”https://imgur.com/”u003eu003c/au003e”,
contentPolicyHtml: “User contributions licensed under u003ca href=”https://creativecommons.org/licenses/by-sa/3.0/”u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href=”https://stackoverflow.com/legal/content-policy”u003e(content policy)u003c/au003e”,
allowUrls: true
},
onDemand: true,
discardSelector: “.discard-answer”
,immediatelyShowMarkdownHelp:true
});

}
});

draft saved
draft discarded

StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2funix.stackexchange.com%2fquestions%2f484783%2fx11-forwarding-from-linux-red-hat-to-windows-10-running-openssh%23new-answer’, ‘question_page’);
}
);

Post as a guest

Required, but never shown

active

oldest

votes

active

oldest

votes

active

oldest

votes

active

oldest

votes

draft saved
draft discarded

Thanks for contributing an answer to Unix & Linux Stack Exchange!

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

Some of your past answers have not been well-received, and you’re in danger of being blocked from answering.

Please pay close attention to the following guidance:

  • Please be sure to answer the question. Provide details and share your research!

But avoid

  • Asking for help, clarification, or responding to other answers.
  • Making statements based on opinion; back them up with references or personal experience.

To learn more, see our tips on writing great answers.

draft saved

draft discarded

StackExchange.ready(
function () {
StackExchange.openid.initPostLogin(‘.new-post-login’, ‘https%3a%2f%2funix.stackexchange.com%2fquestions%2f484783%2fx11-forwarding-from-linux-red-hat-to-windows-10-running-openssh%23new-answer’, ‘question_page’);
}
);

Post as a guest

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Required, but never shown

Related Post

Leave a Reply

Your email address will not be published. Required fields are marked *