1.在desktop主机中建立用户westos,并设定其密码为westoslinux

Linux unit9 练习_练习

2.配置desktop中的sshd服务要求如下:

*)设定sshd服务只允许westos用户可以被访问使用

Linux unit9 练习_练习_02

Linux unit9 练习_练习_03



*)创建westos用户的key认证方式

Linux unit9 练习_练习_04Linux unit9 练习_练习_05

*)设定westos用户只允许使用key认证方式,屏蔽其系统密码认证方式

Linux unit9 练习_练习_06

验证:Linux unit9 练习_练习_07