| Linode Forum https://forum.linode.com/ |
|
| Unable to log in via SSH https://forum.linode.com/viewtopic.php?f=19&t=2216 |
Page 1 of 1 |
| Author: | ghurtado [ Sat Apr 08, 2006 5:25 pm ] |
| Post subject: | Unable to log in via SSH |
Yesterday I installed Webmin, and in the process, I installed the Authen::PAM module required for it to run. I believe this is relevant to my current situation but I may be wrong. I was also having trouble with Proftpd authentication, so I executed "authconfig", and though I *thought* I exited without making any changes, it could be the case that I screwed something up by going in there. Today, I rebooted my Linode, and now I can no longer SSH into the box. The SSH daemon is up (it asks for a password) but it rejects my root password or any of the other accounts in the system that were working fine until the reboot. I am able to log in via Lish, but when I do so, and attempt to get a screen shell (pressing ENTER a few times), all I get is the following prompt #li13-155 login: Which does not accept any username or password I give it. I know the host is up, and I have access to it via Webmin. I am fairly certain that I have screwed something up related to Authentication and possibly to do with the PAM module, so no SSH login is allowed. A line that caught my eye from the boot log via lish: /sbin/mkkerneldoth: line 23: /boot/kernel.h: No such file or directory (not sure if that is even related to my problem) What should I try next in order to fix this? |
|
| Author: | smitty [ Sat Apr 08, 2006 7:32 pm ] |
| Post subject: | |
I have experienced this issue in the past. If you have a lish console session active during a reboot it might do this. I have fixed this by closing my lish session, rebooting and do not open the lish session until the boot process has completed. |
|
| Author: | ghurtado [ Sun Apr 09, 2006 2:20 am ] |
| Post subject: | |
Thanks for the tip, but it seems that my problem might be related to something else. I did just reboot without any lish sessions open, and I am still unable to log in via SSH. To be perfectly clear, the password prompt comes up, but it rejects my password (the same root password that works just fine via Webmin) leading me to think that it is some sort of authentication module issue. |
|
| Author: | Internat [ Sun Apr 09, 2006 6:48 am ] |
| Post subject: | |
umm check ur /etc/sshd_config type file and check that permitrootlogin isnt set to no after an update or so hope that helps Cheers internat |
|
| Author: | Xan [ Sun Apr 09, 2006 11:19 am ] |
| Post subject: | |
But if he's coming in through lish, that's bypassing his SSH completely. That's why it looks like this is some more fundamental authentication problem. I wish I could help more than that! |
|
| Author: | cmantito [ Sun Apr 09, 2006 12:39 pm ] |
| Post subject: | |
I'd start out by launching finnix and mount your / partition, check and make sure your /etc/shadow and /etc/passwd files are still intact and something didn't set them back to defaults or some such. Then I'd check my authentication config files and make sure they're ok. (don't ask me which ones, though, I'm not sure off the top of my head |
|
| Author: | ghurtado [ Sun Apr 09, 2006 1:33 pm ] |
| Post subject: | |
Thanks for all the tips, guys. I have checked to make sure the SSH configuration is in order (via Webmin) , and it does allow root login. I am also pretty sure that /etc/password et all are working, since I can log into webmin using any of the Unix user accounts I set up originally. I was able to find the SSH logs in webmin, and I noticed something that seems very likely to be related to the problem I have: Code: Apr 9 12:58:30 li13-155 sshd[4866]: PAM unable to dlopen(/lib/security/$ISA/pam_env.so) So it looks like SSHD is attempting to use PAM for authentication but it can't load the PAM modules. Does anyone know if I can change the SSH config to use regular Unix authentication? Thanks again. Garcia |
|
| Author: | ghurtado [ Sun Apr 09, 2006 5:39 pm ] |
| Post subject: | |
Just wanted to give an update to this, even though I never fully understood what happened, I was able to log in via Lish after rebooting into runlevel 1 from the Linode admin site. I decided to take the easy route and reinstalled the distro, I am using Debian now and so far I like it a lot more than RedHat. |
|
| Page 1 of 1 | All times are UTC-04:00 |
| Powered by phpBB® Forum Software © phpBB Group http://www.phpbb.com/ |
|