突然之间,新用户无法 ssh 进入我们的 ubuntu 服务器。尝试时,连接将关闭。我尝试对以前从未登录过服务器的测试用户执行 su 操作,但我的权限被拒绝。当我执行 sudo service sssd status 我得到
jordend@server:/etc/ssh$ sudo service sssd status
● sssd.service - System Security Services Daemon
Loaded: loaded (/lib/systemd/system/sssd.service; enabled; vendor preset: enabled)
Active: active (running) since Wed 2020-06-10 09:11:07 PDT; 10min ago
Main PID: 1090 (sssd)
Tasks: 4 (limit: 7065)
CGroup: /system.slice/sssd.service
├─1090 /usr/sbin/sssd -i --logger=files
├─1435 /usr/lib/x86_64-linux-gnu/sssd/sssd_be --domain mydomain.com --uid 0 --gid 0 --logger=files
├─1519 /usr/lib/x86_64-linux-gnu/sssd/sssd_nss --uid 0 --gid 0 --logger=files
└─1520 /usr/lib/x86_64-linux-gnu/sssd/sssd_pam --uid 0 --gid 0 --logger=files
Jun 10 09:11:06 server.mydomain.com sssd[be[1435]: Starting up
Jun 10 09:11:07 server.mydomain.com sssd[1520]: Starting up
Jun 10 09:11:07 server.mydomain.com sssd[1519]: Starting up
Jun 10 09:11:07 server.mydomain.com systemd[1]: Started System Security Services Daemon.
Jun 10 09:11:08 server.mydomain.com sssd[1090]: ; TSIG error with server: tsig verify failure
Jun 10 09:11:08 server.mydomain.com sssd[1090]: ; TSIG error with server: tsig verify failure
Jun 10 09:11:08 server.mydomain.com sssd[1090]: ; TSIG error with server: tsig verify failure
Jun 10 09:11:08 server.mydomain.com sssd[1090]: ; TSIG error with server: tsig verify failure
Jun 10 09:11:08 server.mydomain.com sssd[1090]: ; TSIG error with server: tsig verify failure
Jun 10 09:12:21 server.mydomain.com [sssd[krb5_child[2094]: No credentials cache found (filename: /tmp/krb5cc_600010461_Z13abW)
这似乎发生在我的所有 3 台 ubuntu 服务器上。
It's a windows domain
[sssd]
domains = molienergy.com
config_file_version = 2
services = nss, pam
[domain/molienergy.com]
ad_domain = molienergy.com
krb5_realm = MOLIENERGY.COM
realmd_tags = manages-system joined-with-adcli
cache_credentials = True
id_provider = ad
krb5_store_password_if_offline = True
default_shell = /bin/bash
ldap_id_mapping = True
use_fully_qualified_names = false
fallback_homedir = /home/%u@%d
access_provider = simple
simple_allow_groups = domain admins
我还应该注意,我不能简单地 su 作为用户。我可以做一个 sudo su 用户名。
好吧,我是个白痴。在实际查看该 sssd.conf 文件并注意到最后一行之后。只允许域管理员远程访问该服务器。