Setting up Public Key Auth SSH & Allow root

·

1 min read

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