Question

kali linux ssh permission denied(public key, password) problem

Posted November 28, 2021 164 views
Linux BasicsUbuntuLinux Commands

Hello,
I tried every possible method and tutorial that exists in the internet but ssh still wants me to connect the commands with public,key and password

For example i try command ip-copy-id -i id_rsa.pub user@ip-address
it will want me my password and than permission denied (public key, password)

anyone have any suggestions
the others solution i tried was nano command, keygen etc..

These answers are provided by our Community. If you find them useful, show some love by clicking the heart. If you run into issues leave a comment, or add your own answer to help others.

×
Submit an Answer
1 answer

Hi @akselseri,

You need to add your key in the ~/.ssh/id_rsa.pub file on your Kali installation. That’s it, there is nothing more than that.

If you are receiving permission denied (public key, password) this means your server for whatever reason can’t read the ssh key you’ve added to it. This can be due to ownership, permissions or your SSH and SSHD config which can be found in /etc/ssh/sshdconfig and /etc/ssh/sshconfig.