Wrong SSH password after update from 158 to 159

Having issues with your DietPi installation, or, found a bug? Post it here.
Post Reply
schnitzelbrain
Posts: 13
Joined: Sun Nov 05, 2017 4:23 pm

Wrong SSH password after update from 158 to 159

Post by schnitzelbrain »

Hi,

I just did something you should never do on my XU4 system
I updated a running system :oops: from 158 to 159

Now I cant login via WinSCP nor with Putty.
It asks for user, so "root"
But then it doesn't take the standard "dietpi" passoword.

Didn't change anything else.
Any tipps?

greetz
Schnitzelbrain
schnitzelbrain
Posts: 13
Joined: Sun Nov 05, 2017 4:23 pm

Re: Wrong SSH password after update from 158 to 159

Post by schnitzelbrain »

Just tried user "dietpi" instead of "root" with password "dietpi" and i am in.

On the changelog page in the picture the user root is still seen.

So what gives?


Schnitzelbrain

Merry xmas for everyone :D
schnitzelbrain
Posts: 13
Joined: Sun Nov 05, 2017 4:23 pm

Re: Wrong SSH password after update from 158 to 159

Post by schnitzelbrain »

Ok, solved myself .
I used dietpi-config with sudo under user dietpi login to change the root password to dietpi again.

Worked out.

Jeez that was a xmas heart attack, almost.

Schnitzelbrain

EDIT:Typo
Last edited by schnitzelbrain on Tue Dec 26, 2017 12:09 pm, edited 1 time in total.
User avatar
k-plan
Posts: 416
Joined: Sun Feb 28, 2016 5:28 pm

Re: Wrong SSH password after update from 158 to 159

Post by k-plan »

schnitzelbrain wrote:I just did something you should never do on my XU4 system
I updated a running system from 158 to 159
Hmm ... how have you trigger this update?

Code: Select all

dietpi@DietPi:~$ sudo dietpi-update
:?:
If you find our project or support useful, then we’d really appreciate it if you’d consider contributing to the project however you can.
Donating is the easiest – you can use PayPal and Bitcoin.
schnitzelbrain
Posts: 13
Joined: Sun Nov 05, 2017 4:23 pm

Re: Wrong SSH password after update from 158 to 159

Post by schnitzelbrain »

k-plan wrote:
schnitzelbrain wrote:I just did something you should never do on my XU4 system
I updated a running system from 158 to 159
Hmm ... how have you trigger this update?

Code: Select all

dietpi@DietPi:~$ sudo dietpi-update
:?:
Hi k-plan,

yes as you mentioned

Code: Select all

dietpi@DietPi:~$ sudo dietpi-update
without the sudo as I always login as root.

My fix was not persistant as after reboot it was gone again. I am not sure as it could also be a problem with my ssh connaction PC wise.
What I did to finally solve this was:

Code: Select all

Restored my Backup (taken just before update)
The fault was still there but I was on 158 again.
Reversed the SSH Server back to Dropbear via Dietpi menues
Then the root login was already working, also after power reset and reboot
Re-installed SSH Server and from that point on it was ok.
When changing from/to dropbear and back I realized that my putty was asking for an update of the keys. maybe there was something messed up as it didn't ask for an update after I did the 159 Update.
It also asked for it when logging in as dietpi user, so I asume thats why this one worked.

Next time I try to look for an forced key update from putty or WinSCP, but for now I keep it as is :lol:

Greeztz
Post Reply