NanoPi NEO2 - Unable to logon as dietpi user

Picked up a blank new SD card and formarted and then burned the IMG file.

I can logon as ROOT but unable to logon as DIETPI.
It closes the connection before going forward.

ssh dietpi@192.168.2.126
dietpi@192.168.2.126's password: 
Connection to 192.168.2.126 closed.

Hello,
Note that you do need to login as root to complete the first run setup. Could you try after you’ve done that?

Yes I did that. The process was completed … and i’m unable to logon as dietpi user. it simply closes the connection as showed.

Ok… tried on another NEO2.

Same thing. It finish the install under root … when I log out … and try to log in under dietpi username … is closes the connection.

If you log in as root, what is the output for ls /home?

root@DietPi:/# ls /home/
qbittorrent
root@DietPi:/#

If I remember correctly, there was a discussion here from MichaIng and Joulinar to drop the dietpi user and let us create the username we fancy. Not sure if this is the case here.

There must be a problem with NanoPi NEO2 image file … because my Raspberry Pi 4 works just fine.

Bug in the PREP script. Many thanks for reporting: https://github.com/MichaIng/DietPi/issues/4231
I’ll repack the images, luckily its nothing more to do than a mkdir -p /home/dietpi; cp -a /etc/skel/. /home/dietpi/; chown -R dietpi: /home/dietpi.

root@DietPi:~# cp -a /etc/skel/. /home/dietpi/; chmod dietpi: /home/dietpi
chmod: invalid mode: ‘dietpi:’
Try ‘chmod --help’ for more information.

Whoopsie, it should have been chown -R, I updated the command above.