Welcome! Log In Create A New Profile

Advanced

can not log in after jessie installation

Posted by hill 
hill
can not log in after jessie installation
September 25, 2015 08:37PM
I installed Debian Jessie on a pogoplug e02 using deboostrap on a different pogoplug. But after it boots up, I could not log in as root in ssh or serial. I have tried the following, but none worked.
1. write to /etc/shadow
2. delete the second field in /etc/shadow for root entry
3. copy a known working /etc/shadow from a known working machine

anyone has any idea?

thanks in advance
Re: can not log in after jessie installation
September 25, 2015 10:27PM
hill Wrote:
-------------------------------------------------------
> I installed Debian Jessie on a pogoplug e02 using
> deboostrap on a different pogoplug. But after it
> boots up, I could not log in as root in ssh or
> serial. I have tried the following, but none
> worked.
> 1. write to /etc/shadow
> 2. delete the second field in /etc/shadow for
> root entry
> 3. copy a known working /etc/shadow from a known
> working machine
>
> anyone has any idea?
>
> thanks in advance

Mount your rootfs on another Linux box, change the /etc/ssh/sshd_config file to look like this

cat /etc/ssh/sshd_config | grep -i permit
PermitRootLogin yes
PermitEmptyPasswords no
# the setting of "PermitRootLogin without-password".

-bodhi
===========================
Forum Wiki
bodhi's corner (buy bodhi a beer)
hill
Re: can not log in after jessie installation
September 26, 2015 11:17AM
that works. Thanks bodhi. you are the man.
Author:

Your Email:


Subject:


Spam prevention:
Please, enter the code that you see below in the input field. This is for blocking bots that try to post this form automatically. If the code is hard to read, then just try to guess it right. If you enter the wrong code, a new image is created and you get another chance to enter it right.
Message: