在 Linux(例如 Ubuntu 18.04)中,如何配置sshd以允许尚不存在的 OS 用户使用公钥登录?
例如:
在服务器上:/etc/ssh/sshd_config 有 AuthorizedKeysFile: /etc/ssh/keys/%u
sudo mkdir -p /etc/ssh/keys
sudo tee /etc/ssh/keys/foo <<< "$(cat id_rsa.pub)"
sudo systemctl restart sshd
在客户端:ssh foo@server
In this scenario, the server does NOT have a foo account in /etc/passwd, but I'd like to create one automatically and then use pam_mkhomedir to create its home directory -- all because the user can successfully authenticate using a public key.
My attempt:
/etc/pam.d/sshd comment out @include common-auth (makes no …
如果我的 Web 服务器(最新的 Apache)具有有效(未过期或撤销)的 Verisign 证书链(根 -> 中间 -> 叶/我的服务器),那么服务器是否将整个(?)链发送给客户端?Web 客户端(例如,最新的 Chrome)是否需要在线查找每个相同的证书,尤其是在客户端已经信任根 CA 的情况下?
如果客户无法联系威瑞信会怎样?(例如,在没有 WiFi 的笔记本电脑上设置 LAMP)。
我是 OpenLDAP(但不是 Microsoft Active Directory)的新手,正在阅读 zytrax 的 openldap 指南。我在 CentOS 7.4 上使用 OpenLDAP 2.4.44,如下所示:
@(#) $OpenLDAP: slapd 2.4.44 (Aug 4 2017 14:23:27) $
mockbuild@c1bm.rdu2.centos.org:/builddir/build/BUILD/openldap-2.4.44/openldap-2.4.44/servers/slapd
Run Code Online (Sandbox Code Playgroud)
我想添加余弦(以及后来的 inetorgperson)模式,但这失败了:
ldapadd -f /etc/openldap/schema/cosine.ldif
ldap_sasl_interactive_bind_s: No such attribute (16)
Run Code Online (Sandbox Code Playgroud)
而这有效:
ldapadd -H ldapi:/// -Y EXTERNAL -f /etc/openldap/schema/cosine.ldif
Run Code Online (Sandbox Code Playgroud)
任何人都可以解释为什么?显然,ldapi:// -Y EXTERNAL 似乎表示 SASL,但我还没有找到 zytrax 对为什么/何时在 OLC 中使用 ldapi:// 而不是 ldapadd 命令的解释。