1、添加sudo用户执行visudo命令,找到:
在下面增加:(注意,qianyunlai 是Linux新增的一个普通用户)
2、禁止root用户登录编辑/etc/ssh/sshd_config,将
重启sshd: