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

Welcome to TechBeginner.in, Tech Beginner provides technical blog for Online Linux Tutorials, Ubuntu Tutorials, Redhat Tutorials and CentOS 7, Configuration of server like Web Server, Application server, Database server, Window server, networking, html, css, java script, php, wordpress, opencart, magento, joomla and etc.

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

Share This



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



Conclusion

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.

 

No comments:

Post a Comment