X11 forwarding and .Xauthority fileX client forwarded over SSH “cannot open display:...
What is the term for a person whose job is to place products on shelves in stores?
I preordered a game on my Xbox while on the home screen of my friend's account. Which of us owns the game?
Where was the County of Thurn und Taxis located?
Why do real positive eigenvalues result in an unstable system? What about eigenvalues between 0 and 1? or 1?
Can someone publish a story that happened to you?
What does "function" actually mean in music?
What is the best way to deal with NPC-NPC combat?
How long after the last departure shall the airport stay open for an emergency return?
A strange hotel
How exactly does Hawking radiation decrease the mass of black holes?
Are there moral objections to a life motivated purely by money? How to sway a person from this lifestyle?
Why did Rep. Omar conclude her criticism of US troops with the phrase "NotTodaySatan"?
Co-worker works way more than he should
How do I produce this Greek letter koppa: Ϟ in pdfLaTeX?
Prove that the countable union of countable sets is also countable
What makes accurate emulation of old systems a difficult task?
Is it acceptable to use working hours to read general interest books?
"The cow" OR "a cow" OR "cows" in this context
Work requires me to come in early to start computer but wont let me clock in to get paid for it
How bug prioritization works in agile projects vs non agile
What was Apollo 13's "Little Jolt" after MECO?
Was Dennis Ritchie being too modest in this quote about C and Pascal?
"My boss was furious with me and I have been fired" vs. "My boss was furious with me and I was fired"
Why do distances seem to matter in the Foundation world?
X11 forwarding and .Xauthority file
X client forwarded over SSH “cannot open display: localhost:11.0”“su” with error “X11 connection rejected because of wrong authentication”No xauth data; using fake authentication. Unable to display remote windows.Xauthority file is emptyUnderstanding ssh X11 forwardingssh x11 forwarding drag-and-drop“Invalid MIT-MAGIC-COOKIE-1 key” when trying to run program remotelyCygwin/X DISPLAY number no longer :0?Encrypted Home Directory and SSH (Key-Only-Authentication) breaks X11 forwardingHow to generate a new Xauthority with no home?
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty{ margin-bottom:0;
}
I've looked around for an answer to this question off and on for the past few weeks, but none of the solutions I've seen have worked for me. I've tried deleting the .Xauthority file in both locations.
I use Cygwin X to access another computer. Recently X11 forwarding hasn't been working. After starting the X server on my local machine:
[local]$ export DISPLAY=0.0
[local]$ ssh -XY user@remotelocation
Warning: No xauth data; using fake authentication data for X11 forwarding.
I'm not sure if this is helpful, but:
[remote]$ xauth list
location/unix:10 MIT-MAGIC-COOKIE-1 304eb389beb66bf44ae6bc1821bdf472
Finally, the problem occurs here:
[remote]$ gedit file &
X11 connection refused because of wrong authentication.
I've always received the "no xauth data; using fake authentication" warning, but recently the X11 connection has been refused as a result. Do you have any suggestions?
ssh x11 xforwarding xauth
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
add a comment |
I've looked around for an answer to this question off and on for the past few weeks, but none of the solutions I've seen have worked for me. I've tried deleting the .Xauthority file in both locations.
I use Cygwin X to access another computer. Recently X11 forwarding hasn't been working. After starting the X server on my local machine:
[local]$ export DISPLAY=0.0
[local]$ ssh -XY user@remotelocation
Warning: No xauth data; using fake authentication data for X11 forwarding.
I'm not sure if this is helpful, but:
[remote]$ xauth list
location/unix:10 MIT-MAGIC-COOKIE-1 304eb389beb66bf44ae6bc1821bdf472
Finally, the problem occurs here:
[remote]$ gedit file &
X11 connection refused because of wrong authentication.
I've always received the "no xauth data; using fake authentication" warning, but recently the X11 connection has been refused as a result. Do you have any suggestions?
ssh x11 xforwarding xauth
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Welcome to U&L. Please edit your question here by adding the output ofgrep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00
add a comment |
I've looked around for an answer to this question off and on for the past few weeks, but none of the solutions I've seen have worked for me. I've tried deleting the .Xauthority file in both locations.
I use Cygwin X to access another computer. Recently X11 forwarding hasn't been working. After starting the X server on my local machine:
[local]$ export DISPLAY=0.0
[local]$ ssh -XY user@remotelocation
Warning: No xauth data; using fake authentication data for X11 forwarding.
I'm not sure if this is helpful, but:
[remote]$ xauth list
location/unix:10 MIT-MAGIC-COOKIE-1 304eb389beb66bf44ae6bc1821bdf472
Finally, the problem occurs here:
[remote]$ gedit file &
X11 connection refused because of wrong authentication.
I've always received the "no xauth data; using fake authentication" warning, but recently the X11 connection has been refused as a result. Do you have any suggestions?
ssh x11 xforwarding xauth
I've looked around for an answer to this question off and on for the past few weeks, but none of the solutions I've seen have worked for me. I've tried deleting the .Xauthority file in both locations.
I use Cygwin X to access another computer. Recently X11 forwarding hasn't been working. After starting the X server on my local machine:
[local]$ export DISPLAY=0.0
[local]$ ssh -XY user@remotelocation
Warning: No xauth data; using fake authentication data for X11 forwarding.
I'm not sure if this is helpful, but:
[remote]$ xauth list
location/unix:10 MIT-MAGIC-COOKIE-1 304eb389beb66bf44ae6bc1821bdf472
Finally, the problem occurs here:
[remote]$ gedit file &
X11 connection refused because of wrong authentication.
I've always received the "no xauth data; using fake authentication" warning, but recently the X11 connection has been refused as a result. Do you have any suggestions?
ssh x11 xforwarding xauth
ssh x11 xforwarding xauth
edited Nov 24 '17 at 21:16
Gilles
549k13111191632
549k13111191632
asked Nov 24 '17 at 20:41
luminessenceluminessence
612
612
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
bumped to the homepage by Community♦ 32 mins ago
This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
1
Welcome to U&L. Please edit your question here by adding the output ofgrep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00
add a comment |
1
Welcome to U&L. Please edit your question here by adding the output ofgrep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00
1
1
Welcome to U&L. Please edit your question here by adding the output of
grep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00
Welcome to U&L. Please edit your question here by adding the output of
grep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00
add a comment |
1 Answer
1
active
oldest
votes
I've tried deleting the
.Xauthority
file in both locations.
Maybe something went wrong before that, but you certainly aren't going to succeed after this. If you found this advice somewhere, and they weren't referring to some extremely unusual circumstance that doesn't apply to you, blacklist that source. Restore the .Xauthority
file on the client.
If you've lost the .Xauthority
file, you may be able to restore it from a running process or from a temporary file. I have no idea how to do it with Cygwin. The simple way that will work everywhere is to quit the X server and start a new one.
If you get the message “no xauth data; using fake authentication”, then remote applications aren't going to be able to display on your local server unless it's configured with security turned off. Without the security of xauth, anybody can spy on your X session and inject input if they can access the X server; depending on the configuration, they may need to be local users (in which case it isn't so bad on a single-user operating system) or it may be enough that they can open a TCP connection to your machine (i.e. they're in your local network, which could be anybody if you're e.g. using public wifi). If it used to work and no longer does, it may be because some missing security check was recently fixed.
Once you have a valid .Xauthority
file, open a shell and check that you can run local applications such as gedit
. From that same shell, run ssh -X user@remotelocation
and try running an X application. Either that will work or you'll get error messages; read them, and copy-paste them if you ask for help. If it doesn't work, run ssh -vv -X user@remotelocation
; the extra debugging output will give some information as to why it doesn't work.
Do make sure that the server allows remote X connections. With OpenSSH, the file /etc/sshd_config
(or /etc/ssh/sshd_config
or some other location depending on the distribution) must contain X11Forwarding yes
.
add a comment |
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',
autoActivateHeartbeat: false,
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
});
}
});
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%2f406866%2fx11-forwarding-and-xauthority-file%23new-answer', 'question_page');
}
);
Post as a guest
Required, but never shown
1 Answer
1
active
oldest
votes
1 Answer
1
active
oldest
votes
active
oldest
votes
active
oldest
votes
I've tried deleting the
.Xauthority
file in both locations.
Maybe something went wrong before that, but you certainly aren't going to succeed after this. If you found this advice somewhere, and they weren't referring to some extremely unusual circumstance that doesn't apply to you, blacklist that source. Restore the .Xauthority
file on the client.
If you've lost the .Xauthority
file, you may be able to restore it from a running process or from a temporary file. I have no idea how to do it with Cygwin. The simple way that will work everywhere is to quit the X server and start a new one.
If you get the message “no xauth data; using fake authentication”, then remote applications aren't going to be able to display on your local server unless it's configured with security turned off. Without the security of xauth, anybody can spy on your X session and inject input if they can access the X server; depending on the configuration, they may need to be local users (in which case it isn't so bad on a single-user operating system) or it may be enough that they can open a TCP connection to your machine (i.e. they're in your local network, which could be anybody if you're e.g. using public wifi). If it used to work and no longer does, it may be because some missing security check was recently fixed.
Once you have a valid .Xauthority
file, open a shell and check that you can run local applications such as gedit
. From that same shell, run ssh -X user@remotelocation
and try running an X application. Either that will work or you'll get error messages; read them, and copy-paste them if you ask for help. If it doesn't work, run ssh -vv -X user@remotelocation
; the extra debugging output will give some information as to why it doesn't work.
Do make sure that the server allows remote X connections. With OpenSSH, the file /etc/sshd_config
(or /etc/ssh/sshd_config
or some other location depending on the distribution) must contain X11Forwarding yes
.
add a comment |
I've tried deleting the
.Xauthority
file in both locations.
Maybe something went wrong before that, but you certainly aren't going to succeed after this. If you found this advice somewhere, and they weren't referring to some extremely unusual circumstance that doesn't apply to you, blacklist that source. Restore the .Xauthority
file on the client.
If you've lost the .Xauthority
file, you may be able to restore it from a running process or from a temporary file. I have no idea how to do it with Cygwin. The simple way that will work everywhere is to quit the X server and start a new one.
If you get the message “no xauth data; using fake authentication”, then remote applications aren't going to be able to display on your local server unless it's configured with security turned off. Without the security of xauth, anybody can spy on your X session and inject input if they can access the X server; depending on the configuration, they may need to be local users (in which case it isn't so bad on a single-user operating system) or it may be enough that they can open a TCP connection to your machine (i.e. they're in your local network, which could be anybody if you're e.g. using public wifi). If it used to work and no longer does, it may be because some missing security check was recently fixed.
Once you have a valid .Xauthority
file, open a shell and check that you can run local applications such as gedit
. From that same shell, run ssh -X user@remotelocation
and try running an X application. Either that will work or you'll get error messages; read them, and copy-paste them if you ask for help. If it doesn't work, run ssh -vv -X user@remotelocation
; the extra debugging output will give some information as to why it doesn't work.
Do make sure that the server allows remote X connections. With OpenSSH, the file /etc/sshd_config
(or /etc/ssh/sshd_config
or some other location depending on the distribution) must contain X11Forwarding yes
.
add a comment |
I've tried deleting the
.Xauthority
file in both locations.
Maybe something went wrong before that, but you certainly aren't going to succeed after this. If you found this advice somewhere, and they weren't referring to some extremely unusual circumstance that doesn't apply to you, blacklist that source. Restore the .Xauthority
file on the client.
If you've lost the .Xauthority
file, you may be able to restore it from a running process or from a temporary file. I have no idea how to do it with Cygwin. The simple way that will work everywhere is to quit the X server and start a new one.
If you get the message “no xauth data; using fake authentication”, then remote applications aren't going to be able to display on your local server unless it's configured with security turned off. Without the security of xauth, anybody can spy on your X session and inject input if they can access the X server; depending on the configuration, they may need to be local users (in which case it isn't so bad on a single-user operating system) or it may be enough that they can open a TCP connection to your machine (i.e. they're in your local network, which could be anybody if you're e.g. using public wifi). If it used to work and no longer does, it may be because some missing security check was recently fixed.
Once you have a valid .Xauthority
file, open a shell and check that you can run local applications such as gedit
. From that same shell, run ssh -X user@remotelocation
and try running an X application. Either that will work or you'll get error messages; read them, and copy-paste them if you ask for help. If it doesn't work, run ssh -vv -X user@remotelocation
; the extra debugging output will give some information as to why it doesn't work.
Do make sure that the server allows remote X connections. With OpenSSH, the file /etc/sshd_config
(or /etc/ssh/sshd_config
or some other location depending on the distribution) must contain X11Forwarding yes
.
I've tried deleting the
.Xauthority
file in both locations.
Maybe something went wrong before that, but you certainly aren't going to succeed after this. If you found this advice somewhere, and they weren't referring to some extremely unusual circumstance that doesn't apply to you, blacklist that source. Restore the .Xauthority
file on the client.
If you've lost the .Xauthority
file, you may be able to restore it from a running process or from a temporary file. I have no idea how to do it with Cygwin. The simple way that will work everywhere is to quit the X server and start a new one.
If you get the message “no xauth data; using fake authentication”, then remote applications aren't going to be able to display on your local server unless it's configured with security turned off. Without the security of xauth, anybody can spy on your X session and inject input if they can access the X server; depending on the configuration, they may need to be local users (in which case it isn't so bad on a single-user operating system) or it may be enough that they can open a TCP connection to your machine (i.e. they're in your local network, which could be anybody if you're e.g. using public wifi). If it used to work and no longer does, it may be because some missing security check was recently fixed.
Once you have a valid .Xauthority
file, open a shell and check that you can run local applications such as gedit
. From that same shell, run ssh -X user@remotelocation
and try running an X application. Either that will work or you'll get error messages; read them, and copy-paste them if you ask for help. If it doesn't work, run ssh -vv -X user@remotelocation
; the extra debugging output will give some information as to why it doesn't work.
Do make sure that the server allows remote X connections. With OpenSSH, the file /etc/sshd_config
(or /etc/ssh/sshd_config
or some other location depending on the distribution) must contain X11Forwarding yes
.
answered Nov 24 '17 at 21:15
GillesGilles
549k13111191632
549k13111191632
add a comment |
add a comment |
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.
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%2f406866%2fx11-forwarding-and-xauthority-file%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
1
Welcome to U&L. Please edit your question here by adding the output of
grep -v '^#' /etc/ssh/ssh_config
– GAD3R
Nov 24 '17 at 21:00