Raspberry Pi OS Mac “Permission denied, please try again”?
Hey,
I want to connect to the Rasp Pi via SSH on my Mac. When I enter the command ssh pi@<my ip/hostname>, it asks me to enter my password. I do that, but I always get the message "Permission denied, please try again!"
The IP/hostname and password are 100% correct. It's annoying me, I've been trying this for about 2 hours now…
Can anyone help me? 🙂
Do you use a SSH key? Then it could be a different password than you think. This allows password authentication forcen.
Does the default password raspberry work?
Does the login work with keyboard and monitor? Maybe a different layout is set there if you set the password directly on the Pi.
Generally, this is a user mistake. Simply use SSH keys.
Thank you, but you tried everything and still don’t go:/
Since you tried to log in directly on the pi and watch the keyboard layout, it’s the password and not SSH.
Then you have two options, either you somehow boot into the root user, or mount the sdkarte on a pc and change the password hash from the user.
Alternatively reinstall if the one above is too complicated, so the card can backup and copy important files back from the backup.
For the next time, best, as mentioned above, to use ssh keys when you use them correctly and pay attention to backups, so something does not happen normally. Password managers can also help at least with a backup password for a local admin user (if you are unable to reset the passwords manually).
Have you ever thought about the character set and with a password with retrieval or a y/z or character set characters about their correct occupancy?
Please check your SSH client first. Don’t forget: The MAC uses a different set of characters than the PI.
Your problem is deeper in the system. Either the ssh-key is wrong or there are problems with permissions for the relevant ssh files and ssh directory.
https://phoenixnap.com/kb/ssh-permission-denied-publickey