ssh login error Permission denied (publickey). code example
Example 1: ssh error permission denied (publickey)
sudo service ssh restart
Example 2: permission denied (publickey) ssh ubuntu
sudo nano /etc/ssh/sshd_config
PermitRootLogin prohibit-password to PermitRootLogin yes
PasswordAuthentication no to PasswordAuthentication yes