Raspberry Pi Stack Exchange is a question and answer site for users and developers of hardware and software for Raspberry Pi. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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.

share|improve this question
SSH keys are really very easy and much more secure. – Alex Chamberlain Aug 22 '12 at 19:01
This would have been answered by literally the entire top 10 pages of Google search results for any of those keywords. – Jivings Aug 22 '12 at 22:29
up vote 6 down vote accepted

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?
share|improve this answer

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    
share|improve this answer

sudo passwd pi for no prompt for current password, passwd for standard change.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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