Report this

What is the reason for this report?

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

Posted on November 28, 2021

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…



This textbox defaults to using Markdown to format your answer.

You can type !ref in this text area to quickly search our full set of tutorials, documentation & marketplace offerings and insert the link!

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.

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/sshd_config and /etc/ssh/ssh_config.

The developer cloud

Scale up as you grow — whether you're running one virtual machine or ten thousand.

Get started for free

Sign up and get $200 in credit for your first 60 days with DigitalOcean.*

*This promotional offer applies to new accounts only.