I've tried to set up public keys so I didnt need to enter a password anymore and now I can't get into my pi any more…
What I did:
- run
ssh-keygen -t dsa
on my Mac to create id_dsa in ~/.ssh on my mac - Made dir .ssh in home directory on my pi, and inside created a file authorized_keys
- Copied the contents from id_dsa to authorized_keys
- Changed permissions:
chmod 700 ~/.ssh
andchmod 600 ~/.ssh/authorized_keys
- Edited
etc/ssh/sshd_config
by changing #PasswordAuthentication yes to PasswordAuthentication no sudo reboot
to reboot the pi
Now each time I try to login from my mac I get: Permssion Denied (public key)
Any way to fix it?