是否可以configurationOpenSSH来调用AuthorizedKeysCommand而不在主机上本地注册匹配的用户?
如果您的意思是非本地用户,那么完全有可能,例如, freeIPA可以将用户的公钥存储在其LDAP后端:
ipa user-mod user –sshpubkey='ssh-rsa AAAA…'
并使用:
AuthorizedKeysCommand /usr/bin/sss_ssh_authorizedkeys AuthorizedKeysCommandRunAs nobody
在/etc/ssh/sshd_config有效地将授权密钥的validation委派给`sssd',sssd又被configuration为联系freeIPA服务器。
在这里参考freeIPA网站。
没有。
sshd不能根据正在运行的系统对不存在的用户进行身份validation。 用户必须存在,尽pipe他们不需要在本地定义。