使用root用户登陆到Linux实例上
vi /etc/ssh/sshd_config

找到 ​PermitRootLogin yes

找到 ​PasswordAuthentication no

保存退出

再次重启ssh服务

service sshd restart