大网数据广告活动
服务器运维问答

Unable to SSH into Windows Domain server using Domain User

· 52CE 我爱测

On our Windows Server 2019 is Open SSH Installed Versions used/tested: OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5 OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2 Logon to the Server with a local account (the account exists on the server…

问题原文

原帖链接 · Thorsten Niehues · CC BY-SA 4.0

On our Windows Server 2019 is Open SSH Installed
Versions used/tested:

  • OpenSSH_for_Windows_7.7p1, LibreSSL 2.6.5
  • OpenSSH_for_Windows_8.1p1, LibreSSL 2.9.2

Logon to the Server with a local account (the account exists on the server) works well:
ssh user@host

Logon to the Server with a domain account (the account exists on the domain) is not possible:
ssh domain\\user@host
or
ssh user@domain@host

Message on the client is:
Connection reset by 10.70.108.76 port 22

Anybody an idea how to fix or at least debug this issue ???

I read guides about installing OpenSSH-Server :
e.g. Install OpenSSH | Microsoft Docs

On the Server I noticed these Logs
Server -> Event-Viewer -> Windows Logs -> Security :
Audit Failure
Failure Reason: Unknown user name or bad password

Server -> Event-Viewer -> Applications and Services logs > OpenSSH > Admin

sshd: fatal: ga_init, unable to resolve user domain\\user
sshd: error: get_user_token - unable to generate token on 2nd attempt for user domain\\user

Verbose output -vvv prints this message before disconnecting :

debug3: recv - from CB ERROR:10054, io:0000026B5723BCD0
Connection reset by 192.168.0.1 port 22

已采纳解答

原帖链接 · Thorsten Niehues · CC BY-SA 4.0

The problem was caused by missing AD (Active Directory) Groups / AD Privileges

After granting the Computer to read all properties of the user which wants to connect via SSH :
Open ActiveDirectory > User > Properties > Add > (OpenSSH)Server > Read (is already checked after adding)

it works!

Also there is another thread describing something very similar : Domain user authentication fails with Connection Reset by Peer

摘自公开归档,保留原文语言,版式经整理,外部媒体与邮箱地址已移除。

资料来源与适用范围

资料来源
Server Fault
适用范围
以原帖系统、软件版本与发布日期为准(2021-06-24)
内容语言
中文;命令、路径和错误标识保留技术原文
本地收录日期
2026-11-15
授权说明
CC BY-SA 4.0

正文与所需资源由本站本地存储。查看来源及更新记录 ↗

请按适用版本和实际日志确认原因;本站没有对每一种系统或设备逐项执行文中的操作。