您的位置:首页 > 其它

作业 第九章

2016-10-10 17:53 155 查看
<<<第九单元练习>>>1.在desktop主机中建立用户westos,并设定其密码为westoslinuxuseradd westospasswd westos输入两次westoslinux2.配置desktop中的sshd服务要求如下:*)设定sshd服务只允许westos用户可以被访问使用*)创建westos用户的key认证方式*)设定westos用户只允许使用key认证方式,屏蔽其系统密码认证方式vim /etc/ssh/sshd_configAllowusers westos 加入:wqsystemctl restart sshdssh-keygencd /root/.ssh/ssh-copy-id -i id_rsa.pub westos@172.25.15.10vim /etc/ssh/sshd_configPasswordAuthentication no 78行加入:wqsystemctl restart sshd

                                            
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签:  密码 用户 认证