加入收藏 | 设为首页 | 会员中心 | 我要投稿 东莞站长网 (https://www.0769zz.com/)- 科技、建站、经验、云计算、5G、大数据,站长网!
当前位置: 首页 > 服务器 > 搭建环境 > Windows > 正文

为什么ssh-host-config在Windows 8.1上的Cygwin中创建了两个用户

发布时间:2021-02-26 15:50:07 所属栏目:Windows 来源:网络整理
导读:在尝试解决在 Windows 8.1上使用Cygwin SSH的一些问题时,我想知道为什么ssh-host-config脚本创建两个从头开始配置OpenSSH的新帐户? (这有必要吗?) 当使用默认选择权限升级和服务安装时,这两个帐户是:cyg_server和sshd.我理解第一个仅用于启动Cygwin SSHd

编辑2:无法进入Cygwin开发人员列表,我不得不自己做进一步的调查.到目前为止,我对问题1没有答案,但是用于安装的ssh-host-config脚本还有其他几个问题.最重要的是,您可以随时删除sshd& cyg_server帐户,并使用其设置作为参考设置一个适当的管理员帐户.

问题2:Windows 8.1的默认密码过期设置为42天.必须使用常规Windows工具(UI,WMIC,网络用户等)更改或禁用此功能

来自man 5 sshd_config
UsePrivilegeSeparation
     Specifies whether sshd separates privileges by creating an
     unprivileged child process to deal with incoming network traffic.
     After successful authentication,another process will be created
     that has the privilege of the authenticated user.  The goal of
     privilege separation is to prevent privilege escalation by con-
     taining any corruption within the unprivileged processes.  The
     default is "yes".

所以sshd需要两种类型的帐户:

>具有setuid能力的人.
>一个无特权的帐户.

安装脚本解释了通常的SYSTEM帐户没有setuid权限,因此需要额外的特权帐户.

(编辑:东莞站长网)

【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容!