配置ssl私钥登录
参见https://www.jianshu.com/p/47758a04a1c9
禁用密码登录
修改 /etc/ssh/sshd_config
将其设为no PasswordAuthentication no
重启ssh
/etc/init.d/ssh restart
添加用户
adduser b
将用户添加到sudo组中
usermod -aG sudo b
配置ssl私钥登录
参见https://www.jianshu.com/p/47758a04a1c9
禁用密码登录
修改 /etc/ssh/sshd_config
将其设为no PasswordAuthentication no
重启ssh
/etc/init.d/ssh restart
添加用户
adduser b
将用户添加到sudo组中
usermod -aG sudo b