SSH X11 stuck for a long timeUbuntu/Debian/OpenSSH: Run (system) script on SSH login and/or logoutProblem opening XWindows programs with xming and SSH Secure ShellWhat does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh'ing with -X?SSH X11 not workingSSH X11 forwarding does not work. Why?SSH X11 Forwarding XInputExtension missingUsing X11 over SSH from a MacSSH-forwarded X11 display from Linux to Mac lost after some timeOpenSSH disable ControlMaster for given hostnamegenerate ssh host keys for clients on puppetmaster
How did Thanos not realise this had happened at the end of Endgame?
How to compact two the parabol commands in the following example?
What is the significance of 4200 BCE in context of farming replacing foraging in Europe?
How are one-time password generators like Google Authenticator different from having two passwords?
Why do Thanos's punches not kill Captain America or at least cause some mortal injuries?
What's the word for the soldier salute?
Can 'sudo apt-get remove [write]' destroy my Ubuntu?
Drawing lines to nearest point
Why was Thor doubtful about his worthiness to Mjolnir?
What does i386 mean on macOS Mojave?
Do atomic orbitals "pulse" in time?
Is taking modulus on both sides of an equation valid?
What does a comma mean inside an 'if' statement?
Why does getw return -1 when trying to read a character?
When a land becomes a creature, is it untapped?
51% attack - apparently very easy? refering to CZ's "rollback btc chain" - How to make sure such corruptible scenario can never happen so easily?
Word for being out at night during curfew
Ex-manager wants to stay in touch, I don't want to
How do I tell my supervisor that he is choosing poor replacements for me while I am on maternity leave?
What stroke width Instagram is using for its icons and how to get same results?
Smallest Guaranteed hash collision cycle length
How does noise-cancellation work in Mac laptops?
How to cope with regret and shame about not fully utilizing opportunities during PhD?
Is the schwa sound consistent?
SSH X11 stuck for a long time
Ubuntu/Debian/OpenSSH: Run (system) script on SSH login and/or logoutProblem opening XWindows programs with xming and SSH Secure ShellWhat does “Warning: untrusted X11 forwarding setup failed: xauth key data not generated” mean when ssh'ing with -X?SSH X11 not workingSSH X11 forwarding does not work. Why?SSH X11 Forwarding XInputExtension missingUsing X11 over SSH from a MacSSH-forwarded X11 display from Linux to Mac lost after some timeOpenSSH disable ControlMaster for given hostnamegenerate ssh host keys for clients on puppetmaster
.everyoneloves__top-leaderboard:empty,.everyoneloves__mid-leaderboard:empty,.everyoneloves__bot-mid-leaderboard:empty height:90px;width:728px;box-sizing:border-box;
I routinely run a bunch of experiments (perl scripts) on my lab machines.
The client machine I'm currently running my experiments on runs Ubuntu 14.04.5 LTS.
These perl scripts, among other things, ssh over to other machines on the network to gather network/vmstats. These have been working fine, until a recent update (on the client side) broke something, causing the scripts to run exceptionally slowly, with the following error message generated for every ssh
command in the script :
Warning: No xauth data; using fake authentication data for X11 forwarding.
When I turned on -vvv
level logging on my ssh commands, they reveal the following :
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
***[HANGS FOR 20-30 SECONDS]***
Warning: No xauth data; using fake authentication data for X11 forwarding.
I read all the SO and other forums' discussions I could find related to "interactive session slow" and the xauth warning, but none of the solutions really worked.
I also doubt any of those specific situations apply to me, mainly because I am able to get an ssh session going from the client machine to the server without any problems - it is the ssh's from the perl scripts which have the issue.
I checked the DISPLAY env variable, and it's passing it on correctly to the X11 server (here's the output):
echo $DISPLAY
localhost:10.0
xauth is working as well. I created a toy perl script invoked from inside a shell script (to try and simulate what's happening in my lab experiments), and this runs fine with no issues. Here are my toy scripts:
mary.sh
#!/bin/sh
printenv
test.pl | & tee STDOUT-MARY
test.pl
!/usr/bin/perl
system "ssh -vvv <serverIP> 'cat vmstat.log' >> vmstat.mary < /dev/nulln";
Here are things I have also tried (suggestions from SO etc. discussions):
- Adding DISPLAY to the
Acceptenv
list in/etc/ssh/sshd_config
- Remove MOTD from
/etc/pam.d/login
andsshd
files - Remove
landscape-client
I am totally clueless as to why this is happening, and how I can fix it. My lab experiments are running a lot longer than they should because of this issue. Any help on this is greatly appreciated. If you should need any more information to diagnose the issue, I am happy to provide it.
Thanks.
ssh x11 x11forwarding
add a comment |
I routinely run a bunch of experiments (perl scripts) on my lab machines.
The client machine I'm currently running my experiments on runs Ubuntu 14.04.5 LTS.
These perl scripts, among other things, ssh over to other machines on the network to gather network/vmstats. These have been working fine, until a recent update (on the client side) broke something, causing the scripts to run exceptionally slowly, with the following error message generated for every ssh
command in the script :
Warning: No xauth data; using fake authentication data for X11 forwarding.
When I turned on -vvv
level logging on my ssh commands, they reveal the following :
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
***[HANGS FOR 20-30 SECONDS]***
Warning: No xauth data; using fake authentication data for X11 forwarding.
I read all the SO and other forums' discussions I could find related to "interactive session slow" and the xauth warning, but none of the solutions really worked.
I also doubt any of those specific situations apply to me, mainly because I am able to get an ssh session going from the client machine to the server without any problems - it is the ssh's from the perl scripts which have the issue.
I checked the DISPLAY env variable, and it's passing it on correctly to the X11 server (here's the output):
echo $DISPLAY
localhost:10.0
xauth is working as well. I created a toy perl script invoked from inside a shell script (to try and simulate what's happening in my lab experiments), and this runs fine with no issues. Here are my toy scripts:
mary.sh
#!/bin/sh
printenv
test.pl | & tee STDOUT-MARY
test.pl
!/usr/bin/perl
system "ssh -vvv <serverIP> 'cat vmstat.log' >> vmstat.mary < /dev/nulln";
Here are things I have also tried (suggestions from SO etc. discussions):
- Adding DISPLAY to the
Acceptenv
list in/etc/ssh/sshd_config
- Remove MOTD from
/etc/pam.d/login
andsshd
files - Remove
landscape-client
I am totally clueless as to why this is happening, and how I can fix it. My lab experiments are running a lot longer than they should because of this issue. Any help on this is greatly appreciated. If you should need any more information to diagnose the issue, I am happy to provide it.
Thanks.
ssh x11 x11forwarding
1
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
1
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22
add a comment |
I routinely run a bunch of experiments (perl scripts) on my lab machines.
The client machine I'm currently running my experiments on runs Ubuntu 14.04.5 LTS.
These perl scripts, among other things, ssh over to other machines on the network to gather network/vmstats. These have been working fine, until a recent update (on the client side) broke something, causing the scripts to run exceptionally slowly, with the following error message generated for every ssh
command in the script :
Warning: No xauth data; using fake authentication data for X11 forwarding.
When I turned on -vvv
level logging on my ssh commands, they reveal the following :
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
***[HANGS FOR 20-30 SECONDS]***
Warning: No xauth data; using fake authentication data for X11 forwarding.
I read all the SO and other forums' discussions I could find related to "interactive session slow" and the xauth warning, but none of the solutions really worked.
I also doubt any of those specific situations apply to me, mainly because I am able to get an ssh session going from the client machine to the server without any problems - it is the ssh's from the perl scripts which have the issue.
I checked the DISPLAY env variable, and it's passing it on correctly to the X11 server (here's the output):
echo $DISPLAY
localhost:10.0
xauth is working as well. I created a toy perl script invoked from inside a shell script (to try and simulate what's happening in my lab experiments), and this runs fine with no issues. Here are my toy scripts:
mary.sh
#!/bin/sh
printenv
test.pl | & tee STDOUT-MARY
test.pl
!/usr/bin/perl
system "ssh -vvv <serverIP> 'cat vmstat.log' >> vmstat.mary < /dev/nulln";
Here are things I have also tried (suggestions from SO etc. discussions):
- Adding DISPLAY to the
Acceptenv
list in/etc/ssh/sshd_config
- Remove MOTD from
/etc/pam.d/login
andsshd
files - Remove
landscape-client
I am totally clueless as to why this is happening, and how I can fix it. My lab experiments are running a lot longer than they should because of this issue. Any help on this is greatly appreciated. If you should need any more information to diagnose the issue, I am happy to provide it.
Thanks.
ssh x11 x11forwarding
I routinely run a bunch of experiments (perl scripts) on my lab machines.
The client machine I'm currently running my experiments on runs Ubuntu 14.04.5 LTS.
These perl scripts, among other things, ssh over to other machines on the network to gather network/vmstats. These have been working fine, until a recent update (on the client side) broke something, causing the scripts to run exceptionally slowly, with the following error message generated for every ssh
command in the script :
Warning: No xauth data; using fake authentication data for X11 forwarding.
When I turned on -vvv
level logging on my ssh commands, they reveal the following :
debug1: Entering interactive session.
debug2: callback start
debug2: x11_get_proto: /usr/bin/xauth list unix:10.0 2>/dev/null
***[HANGS FOR 20-30 SECONDS]***
Warning: No xauth data; using fake authentication data for X11 forwarding.
I read all the SO and other forums' discussions I could find related to "interactive session slow" and the xauth warning, but none of the solutions really worked.
I also doubt any of those specific situations apply to me, mainly because I am able to get an ssh session going from the client machine to the server without any problems - it is the ssh's from the perl scripts which have the issue.
I checked the DISPLAY env variable, and it's passing it on correctly to the X11 server (here's the output):
echo $DISPLAY
localhost:10.0
xauth is working as well. I created a toy perl script invoked from inside a shell script (to try and simulate what's happening in my lab experiments), and this runs fine with no issues. Here are my toy scripts:
mary.sh
#!/bin/sh
printenv
test.pl | & tee STDOUT-MARY
test.pl
!/usr/bin/perl
system "ssh -vvv <serverIP> 'cat vmstat.log' >> vmstat.mary < /dev/nulln";
Here are things I have also tried (suggestions from SO etc. discussions):
- Adding DISPLAY to the
Acceptenv
list in/etc/ssh/sshd_config
- Remove MOTD from
/etc/pam.d/login
andsshd
files - Remove
landscape-client
I am totally clueless as to why this is happening, and how I can fix it. My lab experiments are running a lot longer than they should because of this issue. Any help on this is greatly appreciated. If you should need any more information to diagnose the issue, I am happy to provide it.
Thanks.
ssh x11 x11forwarding
ssh x11 x11forwarding
edited Aug 23 '16 at 23:47
aspen100
asked Aug 23 '16 at 23:34
aspen100aspen100
1063
1063
1
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
1
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22
add a comment |
1
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
1
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22
1
1
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
1
1
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22
add a comment |
1 Answer
1
active
oldest
votes
Try using ssh -Y
ssh man page
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
add a comment |
Your Answer
StackExchange.ready(function()
var channelOptions =
tags: "".split(" "),
id: "2"
;
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: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
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%2fserverfault.com%2fquestions%2f798711%2fssh-x11-stuck-for-a-long-time%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
Try using ssh -Y
ssh man page
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
add a comment |
Try using ssh -Y
ssh man page
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
add a comment |
Try using ssh -Y
ssh man page
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
Try using ssh -Y
ssh man page
-Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.
answered Aug 24 '16 at 3:20
Ryan BabchishinRyan Babchishin
5,20011032
5,20011032
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
add a comment |
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
Based on the information in the question this is not good advice. It would be much more sensible to disable forwarding altogether.
– kasperd
Aug 24 '16 at 7:18
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
@kasperd Let's be professional here, that's not polite. He was clear that he needed X11 forwarding enabled when asked. See comments on his questions: "yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :( – "
– Ryan Babchishin
Aug 24 '16 at 12:19
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
Trusted forwarding is already enabled in my config file.
– aspen100
Aug 24 '16 at 15:34
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
@aspen100 Can you post one of your scripts that is not working right so we can all look at it?
– Ryan Babchishin
Aug 24 '16 at 15:43
add a comment |
Thanks for contributing an answer to Server Fault!
- 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%2fserverfault.com%2fquestions%2f798711%2fssh-x11-stuck-for-a-long-time%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
Do your scripts really need X11 forwarding enabled?
– Michael Hampton♦
Aug 24 '16 at 1:31
yes, I believe it is, unfortunately. That was the first thing I tried to get rid of, but it's necessary for certain parts of the script. I'm hoping not to rewrite a bunch of legacy perl code :(
– aspen100
Aug 24 '16 at 3:09
1
@aspen100 Your "experiments" don't work, but the test script you made works fine? The test script doesn't do anything with X11. You should show us one of your real scripts and explain how it gets executed.
– Ryan Babchishin
Aug 24 '16 at 3:22