Deutsch   English   Français   Italiano  
<vn3u3j$35lai$2@dont-email.me>

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

Path: ...!weretis.net!feeder9.news.weretis.net!news.quux.org!eternal-september.org!feeder3.eternal-september.org!news.eternal-september.org!eternal-september.org!.POSTED!not-for-mail
From: Pancho <Pancho.Jones@proton.me>
Newsgroups: comp.sys.raspberry-pi
Subject: Re: Can't get into headless pi, password not 'raspberry'
Date: Sun, 26 Jan 2025 00:02:59 +0000
Organization: A noiseless patient Spider
Lines: 24
Message-ID: <vn3u3j$35lai$2@dont-email.me>
References: <dh5g6l-ft72.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 01:03:00 +0100 (CET)
Injection-Info: dont-email.me; posting-host="471f0ac4561d7ae3066ad688655e56fa";
	logging-data="3331410"; mail-complaints-to="abuse@eternal-september.org";	posting-account="U2FsdGVkX1/0uLe0C0eyaMJttDZ1iqX2hEE6ef4YC5A="
User-Agent: Mozilla Thunderbird
Cancel-Lock: sha1:zZTNv538DOGKcni3iQqYq9RbDR8=
In-Reply-To: <dh5g6l-ft72.ln1@q957.zbmc.eu>
Content-Language: en-GB
Bytes: 2113

On 1/25/25 22:34, Chris Green wrote:
> I am trying to set up a new, headless Pi 4B.  I have copied the 'lite'
> image to a USB drive and created the empty 'ssh' file in the boot
> partition.
> 
> It boots OK and the ssh deamon is running but the default username
> 'pi' and password 'raspberry' don't work. How on earth do I get into
> it to start it up?
> 
> I can edit files on the USB drive OK so I can add and modify entries
> in /etc/passwd and /etc/shadow. So all I actually need to do is set it
> up so the user 'pi' has no password but I'm not doing too well at
> doing that at the moment.
> 
> Any ideas, or other ways to get into it?
> 

Use the Raspberry Pi Imager, it is good. That allows you to do some boot 
provisioning, this is a more up to date version of the ssh file in boot. 
I think there is a .yml provisioning file, but I get confused between 
different OSes.

The other way is to use a .ssh/authorized_keys file, with an appropriate 
key set up on the machine you are coming from.