Setting up Public Key Auth SSH & Allow root
configuration file
nano /etc/ssh/sshd_config
change
#AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
#TO
AuthorizedKeysFile .ssh/authorized_keys .ssh/authorized_keys2
allow root remote
#PermitRootLogin prohibit-password
# TO
PermitRootLogin yes
restart ssh
systemctl restart ssh