How to Change the Raspberry Pi Password

Tyler Tyler (291)
2 minutes

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

Raspberry PiRaspberry Pi ×1

Howchoo is reader-supported. When you buy through links on our site, we may earn a small affiliate commission at no cost to you.

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.


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.

Find out what microcontroller suits your project best.
Ash Ash (330)

Finding the right microcontroller for your project is critical for not just budgetary reasons but also performance.