• Can't get into headless pi, password not 'raspberry'

    From Chris Green@3:770/3 to All on Sat Jan 25 22:34:53 2025
    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?

    --
    Chris Green
    ·

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Chris Townley@3:770/3 to Chris Green on Sat Jan 25 23:56:03 2025
    On 25/01/2025 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?

    There is no longer a default user in current images. When you sue the
    Raspberry Pi Imager, you must use the option to set a user and password,
    and if needed to enable ssh

    --
    Chris

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Pancho@3:770/3 to Chris Green on Sun Jan 26 00:02:59 2025
    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.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Lawrence D'Oliveiro@3:770/3 to Chris Green on Sun Jan 26 02:13:26 2025
    On Sat, 25 Jan 2025 22:34:53 +0000, Chris Green wrote:

    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.

    Try putting this in the password field in the /etc/shadow file:

    $y$j9T$7FOBvVykAYTWGfCHpB2tJ.$/cOEl5X64TU2daBOxeP.hfgF90h23GeLBxFmJI0TVP4

    (that’s a hash for “raspberry”.)

    The hash was produced with my code from here
    <https://gitlab.com/ldo/nixcrypt>. The various hash algorithms that
    should be available are documented here
    <https://manpages.debian.org/crypt(5)>.

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From bp@www.zefox.net@3:770/3 to Chris Green on Sun Jan 26 01:28:39 2025
    Chris Green <cl@isbd.net> wrote:
    [regarding getting into a pi]


    Any ideas, or other ways to get into it?


    Since nobody else brought it up, a serial console is
    useful in this context and also as a maintenance tool.

    hth,

    bob prohaska

    --- SoupGate-Win32 v1.05
    * Origin: Agency HUB, Dunedin - New Zealand | Fido<>Usenet Gateway (3:770/3)
  • From Dave Vandermeer@1:229/275 to UUCP on Wed Feb 26 17:49:00 2025
    To: cl@isbd.net



    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?

    Did you use the RPI Imager to create your SD card? You need to create a password for the pi user now. As far as I have seen it does not come with the password of 'raspberry' any more since they upgraded to bookworm ..

    ---
    * Origin: Internal Dimension [telnet://bbs.idbbs.ca] (1:229/275)