How to Change the Raspberry Pi Password

John John (304)
2 minutes

Assuming you're using a Linux distribution, like Raspberry Pi OS (formerly Raspbian) or Noobs, you can change the password on your pi with the passwd command.

Raspberry PiRaspberry Pi ×1

Howchoo is reader-supported. As an Amazon Associate, we may earn a small affiliate commission at no cost to you when you buy through our links.

To change the password you must be logged in to a shell. Assuming you're using the default username and password, open a shell and type:

ssh pi@raspberrypi

Learn more about how to log into your Raspberry Pi via SSH.

Use the passwd command

Now that you're logged in, you can simply type passwd to change the password for the current user.

passwd

Now you'll be prompted to enter the current password, the new password, and then retype the new password. After you follow these instructions, you're password will be changed.

We’re wrapping up 2021 with a list of Pi goodies that were worth the wait!
Ash Ash (354)
0

Nothing can slow down the Raspberry Pi Foundation, as even in 2021, the team managed to serve up a selection of new Raspberry Pi boards, modules, and fun accessories.