深色模式
ssh-keygen
root/.ssh/authorized_keys
编辑 /etc/ssh/sshd_config 文件,修改以下参数:
PubkeyAuthentication yes PasswordAuthentication no
sudo systemctl restart sshd
如不生效,删除 etc/ssh/sshd_config.d 内的所有文件。
etc/ssh/sshd_config.d
53e0999
62ec76a
22e691a
33ae20d