SSH into pi zero on cnat hat2.4 permission denied (publickey,password)

47 views
Skip to first unread message

George Cowen

unread,
Nov 13, 2024, 1:16:24 PM11/13/24
to ClusterHAT
Hello - it's been a while but I've dusted off the cluster hat, and am back! :)

h/w pi4 & 4 x pi zero in gadget maode.

s/w 32-bit CNAT desktop controller using the rasp pi builder, and selecting custom image.
and then followed:

> wget the tar image from from 8086.net
> tar -axf into correct directories
> usbboot init 1 to 4
> echo user name and pw to userconf.txt done
> touch ssh file per /firmware folder per pi0 directory
> power on
ALL GOOD! :)

All pi0's boot, and I can ping them and begin login to ssh on 172.19.181.X....BUT:
when I put in my pw (as human friendly string) (that's been hashed into userconf)  I get "Permission denied (publickey,password)"

When I nano in to the userconf.txt for each pi zero I see user:hash - but oddly that doesn't seem to be the case in the controller???

What have I got wrong?
What other info would be helpful to diagnose the issue?
I looked into trying to just have a strong password, not a hashed key - but no joy...

Hope someone's got some good ideas, as a bit stumped??

THANKS!
George.

George Cowen

unread,
Nov 13, 2024, 2:58:41 PM11/13/24
to ClusterHAT
OMG!! - I mailed too soon!!!

.....only needed blumin tuning off and on again!!! #facePalm

ignore me: PICNIC!!

George Cowen

unread,
Nov 13, 2024, 3:03:59 PM11/13/24
to ClusterHAT
OK - I can session into 3 and 4, but denied for 1 and 2 ....strange - will try re-doing the user:pw hash

George Cowen

unread,
Nov 13, 2024, 3:25:12 PM11/13/24
to ClusterHAT
hmmm - that's not worked :(

I literally did:
echo "myusername:"$(echo 'mypassword' | openssl passwd -6 -stdin) | sudo tee /var/lib/clusterctrl/nfs/pX/boot/firmware/userconf.txt(replacing myusername and mypassword and set X to 1, [hit enter] then set X to 2, [hit enter] then set X to 3, [hit enter] then set X to 4, [hit enter])3 and 4 work, 1 and 2 don't :( - gurrrrr

George Cowen

unread,
Nov 15, 2024, 1:35:07 PM11/15/24
to ClusterHAT
FIXED!

So I just unpacked the tar into the folders for P1 and 2 again, and then updated user and pw, and then added the ssh file (touch command) init them both, powered up, and it worked.

Notably while I got no error message the first time i did sudo touch /var/lib/clusterctrl/nfs/p1/boot/firmware/ssh , nothing actually got added to the directory - but second time a charm.

Reply all
Reply to author
Forward
0 new messages