On Mon, 22 Sep 2025 13:20:18 -0400 COMCAST <[email protected]> wrote:
> On 9/21/25 12:32, John Hasler wrote: > > Why are you trying to log in as debian? > > > > Try > > > > ssh [email protected] > > > > And use the same password that you have been trying. > > If that doesn't work try using raspberry as the password. > > If that doesn't work ask for help here: > > > > https://forums.raspberrypi.com/viewforum.php?f=28 > > > > You exhausted the help we can give with the limited information > > you've given us. > > > I tried as suggested and it failed again... see below. > > > root@debian:/scripts# ssh [email protected] > Debian GNU/Linux 12 > [email protected]'s password: > Permission denied, please try again. > [email protected]'s password: > If it's a recent version of the OS, then you would have set the user name and password in the Imager program used to make the OS SD card, or in a text file before burning. If it's older, it's pi/raspberry, though of course this can be changed and it was advised to do so. Anyway, let's end this: Steps to Reset Your Raspberry Pi Password Shut down the Pi and remove the SD card: from the Raspberry Pi. Insert the SD card into a computer: that can read its files. Locate and open the cmdline.txt file: in the boot partition of the SD card. Add init=/bin/sh to the end of the line: in the cmdline.txt file. Ensure you add it to the end of the single line of text in the file, not on a new line. Reinsert the SD card: into your Raspberry Pi and boot the device. Mount the file system: as read-write by typing the following command: mount -o remount,rw /. Use the passwd command: to reset the password for your desired user. For example, to reset the password for the user pi, type: passwd pi Enter and confirm: your new password when prompted. Sync the filesystem and remove the added text: from cmdline.txt by typing sync and then remove the init=/bin/sh modification. Reboot the Raspberry Pi: to boot into normal mode with your new password. If you need to find your username If you don't know the username you want to reset the password for, you can use the command getent passwd | awk -F: '{print $1}' to list all users on the system. -- Joe

