L
L
Leonid K2017-04-03 21:03:42
linux
Leonid K, 2017-04-03 21:03:42

How to change raspberry pi password without access to it?

I forgot the password from my raspberry pi, and the only way I can connect to it is ssh (there is no hdmi monitor, and there are no drivers for the gpio screen), there is only a memory card. How do I reset or remove my raspberry password.

Answer the question

In order to leave comments, you need to log in

4 answer(s)
B
belunix, 2017-05-09
@mreluzeon

As an option, try this recipe:
lifehacker.com/reset-a-forgotten-raspberry-pi-pass...
(you may need a USB keyboard)

K
kirdik, 2017-08-16
@kirdik

If you have ssh access to the default pi user, then you need to write "sudo su" in the terminal, this will log you in as root and write "passwd pi" there, if you write "passwd pi" from the pi user, it will ask for the old password . Under the root, he does not ask this.
Or mount sd on another computer (Linux) and in any text editor copy the hash of the known password to the desired user in the /etc/shadow file

T
TyzhSysAdmin, 2017-04-03
@POS_troi

If you have access via ssh then passwd will help you

A
Alexander Aksentiev, 2017-04-03
@Sanasol

If there is no password then SSH will not help you.
As well as the monitor in which the same console requires authorization.
- Formatting

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question