修改配置文件
vi /etc/ssh/sshd_config
#PasswordAuthentication yes
改为
PasswordAuthentication no #改为禁用密码登录重启ssh服务
systemctl restart sshd.service修改配置文件 vi /etc/ssh/sshd_config #PasswordAuthentication yes 改为 PasswordAuthentication no #改为禁用密码登录 重启ssh服务 systemctl restart sshd.service

vi /etc/ssh/sshd_config
#PasswordAuthentication yes
改为
PasswordAuthentication no #改为禁用密码登录systemctl restart sshd.serviceCONTINUE READING
从当前主题出发,浏览更多相关实践与技术记录。