Deutsch   English   Français   Italiano  
<vn5aas$3ob4k$2@dont-email.me>

View for Bookmarking (what is this?)
Look up another Usenet article

Path: ...!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: The Natural Philosopher <tnp@invalid.invalid>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Headless Pi 4B problems - continued
Date: Sun, 26 Jan 2025 12:37:48 +0000
Organization: A little, after lunch
Lines: 55
Message-ID: <vn5aas$3ob4k$2@dont-email.me>
References: <j5gh6l-upd2.ln1@q957.zbmc.eu>
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Injection-Date: Sun, 26 Jan 2025 13:37:48 +0100 (CET)
Injection-Info: dont-email.me; posting-host="41496582371bfc9935f57a9149ec1857";
	logging-data="3943572"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX18kAp2Fdz1QDj4DJLCMGW2jBcZrYkQdSNY="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:DiBZtvAJLYnFSLrW3IRrENTtsqk=
In-Reply-To: <j5gh6l-upd2.ln1@q957.zbmc.eu>
Content-Language: en-GB
Bytes: 2920

On 26/01/2025 10:42, Chris Green wrote:
> This is getting ridiculous!
> 
> Once upon a time one just copied an image to a card, enabled ssh and
> hey presto, you could log in as user pi with password raspberry.
> 
> No chance now.
> 
> I would point out that I'm not, in general, a complete numpty.  I've
> been using Pis (and other similar things) for many many years.
> 
> 
> So, having found out why the above simple approach doesn't work I have
> tried:-
> 
>      Use rpi-imager, wasted first attempt because it wasn't obvious where
>      one entered user/password.  Second attempt seemed to boot the Pi
>      OK but it never appeared on my LAN so not much help there. (At
>      least my first dd copied image appeared on the LAN)
> 
>      Manually editing userconf.txt with my /etc/shadow encrypted
>      password from my Linux box got to a login prompt but the password
>      is somehow wrong.
> 
Ah. There may be gotchas in there like EOL charaters and spaces that 
have to be 'just right'

I generally generate the encryption using the tools suggested.

e.g. echo 'mypassword' | openssl passwd -6 -stdin

echo 'raspberry' | openssl passwd -6 -stdin

$6$5H2l9s5V5YBulBGU$xchi.2AQLn5P5IK/khNPC3uggf9dc5DjY9KKxZK7IdDPNV1Zzggaxg0DTstT8bpSMvRzUlc9vJ/mrPQPbfBX/

Note you never get the same string twice...

Here is a userconf.txt with user pi password raspberry...

pi:$6$c70VpvPsVNCG0YR5$l5vWWLsLko9Kj65gcQ8qvMkuOoRkEagI90qi3F/Y7rm8eNYZHW8CY6BOIKwMH7a3YYzZYL90zf304cAHLFaZE0


>      Finally I managed to get a login working by creating a
>      ~/.ssh/authorized keys file with the public key from my Linux
>      system in it.  Phew!
> 
Ultimately that is a smoother way to access the Pi anyway


-- 
"The great thing about Glasgow is that if there's a nuclear attack it'll 
look exactly the same afterwards."

Billy Connolly