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