I have a debian server on my pc and want to ssh connect form my mac.
First of all I generated an ssh key via
ssh-keygen -t rsa
in my mac, then tried to copy public key to server with
Permission denied, please try again.
and still get same error.
Also I updated
sshd_config in my server with following changes:
and restarted the debian server with
sudo systemctl restart sshd
and tried all steps again but got same error.
Its wired I can switch between users on server with their password but when I use that password for mac connection got permission error, so the password is correct.
Is there another way to copy this key and put in debian server manually?