logout of ssh sessions delayed for seconds for root
This document (7009365) is provided subject to the disclaimer at the end of this document.
Environment
SUSE Linux Enterprise Desktop 11 Service Pack 2
Situation
Checking the process using strace with time stamps (strace -r -f -o filename.txt ssh user@hostname) reveals:
3947 14.296950 --- SIGWINCH (Window changed) @ 0 (0) ---
3947 0.000047 rt_sigaction(SIGWINCH, NULL, {0x7f1f0a9fd860, [], SA_RESTORER, 0x7f1f08675bf0}, 8) = 0
3947 0.000074 rt_sigreturn(0x1c) = -1 EINTR (Interrupted system call)
3947 0.000068 ioctl(4, TIOCGWINSZ, {ws_row=72, ws_col=192, ws_xpixel=0, ws_ypixel=0}) = 0
3947 0.000082 select(7, [3 4], [3], NULL, NULL) = 1 (out [3])
3947 0.000074 write(3, " \320_W\22\6\234\342\210\260oC\246\243\203\366\225C\367\367\246.\344\362^\334\373TD\222\237\243"..., 64) = 64
3947 0.000096 select(7, [3 4], [], NULL, NULL) = 1 (in [3])
3947 10.740011 read(3, "\362p`\23\233\\\351\21p\17E\245\202\325\364\366\360\202\211\263/\3432\2+\335\362\223\36\340\266]"..., 8192) = 160
3947 0.000097 close(4)
This issue is only encountered for the root user, not normal users. Tracing the network traffic shows DNS A and AAAA queries which timeout.
Resolution
Cause
Workaround:
Please check which nameserver cannot be queried by the client and remove the entry from /etc/resolv.conf.
Additional Information
needs to be changed to
Restart sshd to apply the change:
Disclaimer
This Support Knowledgebase provides a valuable tool for SUSE customers and parties interested in our products and solutions to acquire information, ideas and learn from one another. Materials are provided for informational, personal or non-commercial use within your organization and are presented "AS IS" WITHOUT WARRANTY OF ANY KIND.
- Document ID:7009365
- Creation Date: 12-Jun-2012
- Modified Date:28-Sep-2022
-
- SUSE Linux Enterprise Server
For questions or concerns with the SUSE Knowledgebase please contact: tidfeedback[at]suse.com