1、创建用户2、将用户加入wheel组3、编辑 /etc/pam.d/su ,将 #auth required pam_wheel.so use_uid 取消注释4、大概在最后,将 PermitRootLogin 设置为 no5、重启ssh服务