Fix permission denied (publickey). ssh on ubuntu 16.04/18.04/20.04 LTS

In this post, We will fix the permission denied (publickey) in GCP Google Cloud, Azure Cloud and AWS Cloud using ubuntu OS.

SSH stands for Secure Shell is a cryptographic organization convention for working organization benefits safely over an unstable organization. Regular applications incorporate distant order line, login, and far off order execution, however any organization administration can be made sure about with SSH.

You need to open the ssh config file by using the given command.

sudo vim /etc/ssh/sshd_config

Go to line number 56 and changes PasswordAuthentication no to PasswordAuthentication yes

Sample output like ths.


Save and exit from the vim text editor and after that you need to restart the ssh service by using the following command.

sudo systemctl restart sshd


We have successfully Fix permission denied (publickey). ssh on ubuntu in our Ubuntu server, Still you are facing same issue then leave a comment with your problem to get better support.


Fix permission denied (publickey). ssh on ubuntu 16.04/18.04/20.04 LTS

Leave a Reply

Your email address will not be published. Required fields are marked *

Scroll to top