<<<第九单元练习>>>
1.在desktop主机中建立用户westos,并设定其密码为westoslinux

useradd westos
passwd westos
输入两次westoslinux

2.配置desktop中的sshd服务要求如下:
*)设定sshd服务只允许westos用户可以被访问使用
*)创建westos用户的key认证方式
*)设定westos用户只允许使用key认证方式,屏蔽其系统密码认证方式

vim /etc/ssh/sshd_config

Allowusers  westos  加入
:wq

systemctl restart sshd
ssh-keygen
cd /root/.ssh/
ssh-copy-id -i id_rsa.pub westos@172.25.15.10
vim /etc/ssh/sshd_config
PasswordAuthentication no 78行加入
:wq
systemctl restart sshd