書き換えの実施
/etc/ssh/sshd_configPermitRootLogin noPasswordAuthentication noPubkeyAuthentication yes
再起動
systemctl restart sshd
書き換えの実施
/etc/ssh/sshd_config
PermitRootLogin no
PasswordAuthentication no
PubkeyAuthentication yes
再起動
systemctl restart sshd