I will be needing to access my Raspberry Pi while I am away from home, and SSH would be good for this purpose. I am using it with password authentication, and I don't want to mess around with SSH keys.

However, I don't want people to access the server using the default password, so I need to change the Raspberry Pi user password from "raspberry" to something else.

  • 3
    SSH keys are really very easy and much more secure. Aug 22, 2012 at 19:01

3 Answers 3


You can change the password of the current user by running passwd.

Related Questions

  1. How do I create a new user?
  2. What password to use to log in after the first boot?

You can also use the raspi-config script. So run:

sudo raspi-config

A menu will pop up that allows a bunch of things, but if you look at the 4th thing down, select change_pass

change_pass        Change password for 'pi' user    

sudo passwd pi for no prompt for current password, passwd for standard change. You can also use the graphical configuration tool or sudo raspi-config to change it, if you are using the default pi user.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.