Debian Lenny unable to log in over SSH or straight to the server
Hello, how are you?
I have installed Debian lenny with software RAID0 (i think it makes no sence to my problem but maybe...) I have installed apache2+php+MySQL (everything worked) I have installed proftpd (to enable users to put files over FTP) after this i tried to connect over SSH to my server i have got: Code:
$ ssh -l shark 192.168.0.254 -v then i have removed ~/.ssh dir and tried to connect again... i got the same error. Then i connected keybord and monitor to my Linux box, tried to connect there... no success... neither root or my regular user shark. but i should mention my FTP users who have shell: /bin/ftp (symlink to /bin/false) log into the system and then automatically disconnect... ok, i have tried to boot my linux box to debian safe mode... it asked for a root pass... after i provided correct root pass it didn't fit. what to do? I remember once i have made my linux boot to init 1 without asking to provide a pass (it was mandriva Free 2005 or 2006.0) how to do it with a debian machine using grub or any other fixing possibilities? P.S. i can not how provide server side /var/log/syslog or any other info because i cannot log into my Linux "server" thanks for reading and your reply Quote:
|
are you sure you remember actual passwords? try changing them either from init level 1 or by booting from livecd and chroot'ing. Debian's grub config must have single-user level available by default. Mine debian lenny had that after install, 'course I removed it later, so i have no config for that now. I think googling can be a solution.
|
Password is incorrect, thats all.
|
Try booting from a Debian Install CD. At the main menu select Advanced options, then select Rescue Mode. From there you you can execute a shell. Once you get to your shell try running passwd and reset the root password. The reboot normally and see if you can login as root. If so that can get you at least into the machine to see what is happening.
|
You can do the same with booting the single user mode, as Web37337 said, or with init=/bin/sh- booting from the CD is the slow way ;)
|
Quote:
Quote:
|
I'll show you, when I do the same thing, but bodge the password, it does exactly the same:
Code:
jc@jcmain:~$ ssh -v jc@192.168.1.8 Did you try changing init=/bin/bash at the GRUB command? If I remember correctly, when the grub menu comes up you just highlight the entry and hit 'e' |
Quote:
i cant do this at the moment, because we have 4 days off and have no key to get to the server :) so i will tell my success story or fail story on Monday. thanks for your help and advices. |
Lets check some things first before we start messing about with PAM modules. The account on the server is definitely 'shark'? I know you said the password is too lame to forget, but you're totally sure?
Can you login any other way? Do other accounts allow you to log in correctly on there? Can you login locally? Remember Occam's razor, the simplest answer is usually the correct; couple that with the output of mine when I purposefully give a wrong password, and that tends to suggest the account is wrong, or the password. |
Quote:
Quote:
I will log into server using grub and then i will paste sshd log. |
thanx, problem is solved, i have booted with grub, but it was unsuccessful...
then i have booted rescue mod and changed pass... and it helped. |
All times are GMT -5. The time now is 01:58 PM. |