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? 🙂

(1 votes)
Loading...

Similar Posts

Subscribe
Notify of
6 Answers
Oldest
Newest Most Voted
Inline Feedbacks
View all comments
BeamerBen
3 months ago

Do you use a SSH key? Then it could be a different password than you think. This allows password authentication forcen.

ssh -o PubkeyAuthentication=no user@host

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.

BeamerBen
3 months ago
Reply to  gobbledygookki

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).

Traveller5712
3 months ago

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.

HarryXXX
3 months ago
In der sshd_config darf PasswordAuthentication yes nicht auskommentiert sein. 

Die Rechte für.ssh müssen passen. 


Es sollte kein Key mit einem eigenen Passwort hinterlegt sein.

authorized_keys sollte auch passen. 
bmke2012
3 months ago

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