X11 forwarding from Linux Red Hat to Windows 10 running OpenSSH
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 ssh
ing, 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
New contributor
|
show 5 more comments
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 ssh
ing, 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
New contributor
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 runssh -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
|
show 5 more comments
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 ssh
ing, 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
New contributor
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 ssh
ing, 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
ssh windows openssh
New contributor
New contributor
edited Nov 28 at 22:50
New contributor
asked Nov 28 at 22:25
pvlkmrv
993
993
New contributor
New contributor
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 runssh -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
|
show 5 more comments
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 runssh -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
|
show 5 more comments
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
active
oldest
votes
pvlkmrv is a new contributor. Be nice, and check out our Code of Conduct.
pvlkmrv is a new contributor. Be nice, and check out our Code of Conduct.
pvlkmrv is a new contributor. Be nice, and check out our Code of Conduct.
pvlkmrv is a new contributor. Be nice, and check out our Code of Conduct.
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.
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
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
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Post as a guest
Required, but never shown
Sign up or log in
StackExchange.ready(function () {
StackExchange.helpers.onClickDraftSave('#login-link');
});
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
Sign up using Google
Sign up using Facebook
Sign up using Email and Password
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
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