'Whatever' login takes ages...
Hello all,
Since a few days all things concerning logging IN (ssh, su, sudo, hell even console) take ages. For as far I know I didn't change anything. I hoped it would disappear, but it is getting very annoying by now. I didn't notice anything in my dmesg, nor in my other logs. I don't think it has to do with my uptime either, it is quite low since I had to reboot 3 weeks ago.. And for the record, I did check the reverse-dns 'nslookup <IP>' to check if SSH might be having that problem, but it errored out immediately as it should on my LAN. Did anyone ever have this before? And more importantly, figure out a way to fix it? :) Thanks for your help, -Worstje |
hmm, only thing I can think of is maybe your disk is failing, but usually that would log errors...
You could run some tests with smartctl. What kernel is this? Is it partition-specific (is /var on it's own partition)? If this box is remote, does it respond to pings quickly? |
When reading your answer I suddenly noticed that I somehow forgot a word in my first sentence (which is in the title however). It should have read: ...all things concerning logging IN ....
I do not have any problems with harddisks (for as far I know). I apologise if I confused everyone with my mistake :o However, in case you did understand me, I will run some tests with smartctl later. Currently downloading something which I prefer to have finished as it is rather urgent :) The box is semi-remote: I usually access it through putty from the main family computer, but if necessary I can also use the console. The login-delay is there in either case. The following is the output of df -lh: (yes, /var is on its own partition, hda5). Code:
Filesystem Size Used Avail Use% Mounted on I appreciate your help, thanks :) |
I did some googling, and a remedy for a slow ssh login would be to add the ip address of the other computer into each /etc/hosts file. But if you're also having the same problem after you've logged in w/ su & sudo, those wouldn't be affected by this. I'm not convinced that's the fix for your problem. Could you post the /etc/ssh/sshd_config for the box you're trying to get to.
|
Yup I tried those but those didn't work. Also didn't seem to be my problem as it worked fine before, hell, I hadn't even rebooted when this behavior began :(
Code:
worstje@coresausage ssh $ cat sshd_config |
I haven't made any progress myself, but I thought it might be useful for any people who are interested to see my /etc/passwd and /etc/shadow (modified a bit naturally ;))
/etc/passwd: Code:
root:x:0:0::/root:/bin/bash Code:
root:$1$4Sa0yADt$ArQ3e5t6IFaU.5pzqVsXn1:12600:0::::: Edit: I just found out that in the opposite of what my first message says, INITIAL console logins do NOT delay at all. But using anything else that wants your password from that point on (sudo, su) IS delayed. Thanks for taking a look at it everyone! :) |
Made some more progress (I hope).
On suse lists I found this post: su login delay It shed some light on the problem. I looked at the other posts too and try the things they mentioned, for as far applicaple on a slackware system :) 'bash --login' works instantly. adding 'set -x' to /etc/profile .. shows (like the guy in the thread) a huge delay and suddenly lots of output from bash. /etc/pam.d/ ? Cannot do, don't have it :) In the end this person disabled LDAP. So I googled for it, but it doesnt seem like its part of slackware or manually installed, but I do see that samba and sudo have some kind of support for it (in the packagebrowser wildcard search). Is there anyway to see what is happening between 'login' and 'shell'? And once again, I don't think it's specific to ssh, su or sudo since its happening in each of them given certain circumstances (not being inital login on console to name something). Thanks for reading... |
Back I am.
Well this must be something to do with the 'windows'-network it's linked to: rebooting the box fixed everything :rolleyes:. Wish I had the possibility to have tried that before.. :) Thanks for all the thought everyone put into this :) |
All times are GMT -5. The time now is 09:34 AM. |