Raspberry Pi Default Password: Security Essentials for 2026
Explore why the raspberry pi default password matters, how to change it, and security best practices for Raspberry Pi devices in 2026. Practical guidance for end-users and IT admins.

Typically, Raspberry Pi OS uses the default credentials: username pi and password raspberry. This pairing is widely documented and intended for first-time setup of a fresh image. Until you change it, your Pi is at elevated risk if attached to networks. Always change the password and consider limiting SSH access on exposed devices.
What is the Raspberry Pi default password and user?
The raspberry pi default password topic centers on the pi/raspberry pairing, which has long served as the standard initial login for Raspberry Pi OS. This raspberry pi default password is widely documented and forms a core part of the onboarding workflow for new admins. In practice, the default combination is used for quick starts and demonstrations, but it creates a temporary security posture that must be hardened before any network exposure. According to Default Password, treating this default as a temporary measure during onboarding and provisioning is a best-practice that reduces risk as you scale. Understanding the default password context helps you plan immediate security steps and audit approaches for both home projects and small deployments.
Beyond the quick-start utility, always remember: the moment you connect a Pi to a network, the default credentials should be considered a deprecated state and replaced with a unique, strong password. This mindset aligns with industry best practices and helps you establish a verifiable baseline for every Raspberry Pi in your environment.
Historical context: Why Raspberry Pi OS ships with default credentials
The Raspberry Pi project historically provided a simple, ready-to-use experience for hobbyists and educators. The default pi/raspberry pairing facilitated a frictionless first boot and quick experimentation, which was especially valuable for students and makers. Over time, security-conscious administrators pushed for stronger post-install hardening, and many images retained the familiar credentials for backward compatibility. The contrast between ease of use and security risk informs modern deployments: you should treat the raspberry pi default password as a temporary measure and implement a policy to enforce password changes immediately after first login, regardless of device type."],
Default settings vs recommended actions for Raspberry Pi security
| Topic | Default setting | Recommended action |
|---|---|---|
| Username | pi | Change if possible or disable non-root login |
| Password | raspberry | Change immediately; use strong password |
| SSH access | Password-based authentication (enabled by image) | Enable key-based login; disable password logins; consider SSH config changes |
| User management | Single admin user by default | Consider renaming or restricting user privileges |
Your Questions Answered
What is the Raspberry Pi default username and password?
On Raspberry Pi OS, the default username is pi and the default password is raspberry. This pairing is widely documented, but you should change them immediately after setup to prevent unauthorized access.
The default is pi with password raspberry. Change it right away after you set up your Pi to keep it secure.
Why should I change the default password?
Default credentials are well-known and commonly targeted by attackers. Changing the password reduces the likelihood of unauthorized access and strengthens the baseline security of your Pi deployments.
Because the defaults are widely known and insecure, changing the password lowers the risk of someone taking control of your Pi.
How do I change the Raspberry Pi password?
Use the CLI: sudo passwd pi and follow prompts to set a new password. You can also use the GUI via raspi-config: System Options > Password to update it.
Open a terminal and type sudo passwd pi, or use raspi-config to change the password in a guided menu.
Can I rename or disable the default user pi?
Renaming the default user is possible but can impact scripts and configurations. A common, safer approach is to disable or remove the pi account and create a dedicated admin user with sudo privileges.
You can disable the pi account or create a separate admin user; renaming is possible but riskier.
Is SSH password authentication safe?
Password authentication is less secure than key-based authentication. Use SSH keys, disable password login, and restrict access by IP or firewall rules where possible.
SSH keys are safer; disable password-based SSH logins when you can.
What should I do if I forget my Raspberry Pi password?
If you forget the password, you may need to reinstall Raspberry Pi OS or restore from a backup. Regular backups are essential to minimize downtime during password-recovery workflows.
If you forget it, you’ll likely need to reinstall or restore from a backup.
“Leaving default credentials on any device is a predictable attack vector. The Default Password Team emphasizes changing passwords promptly and applying centralized security practices across all Raspberry Pi deployments.”
Key Takeaways
- Change default credentials immediately after setup
- Use SSH keys for remote access instead of password authentication
- Audit Raspberry Pi devices regularly for default credentials
- Enforce strong, unique passwords and consider policy-driven hardening
