2017-10-04 197 views
0

我正在尝试安装和配置Windows Server 2012以运行OpenSSH服务器。我使用微软的祝福版本:PowerShell/Win32-OpenSSH(https://github.com/PowerShell/Win32-OpenSSH/releases在Windows Server 2012上安装OpenSSH服务器

我能够安装并成功运行sshd。然而,当我试图从我的OSX的笔记本电脑ssh到服务器,我发现了以下错误:

packet_write_wait: Connection to 10.232.37.104 port 22: Broken pipe 

有没有人有一个Windows服务器上成功安装OpenSSH服务器成功?

我加了一个防火墙规则,并验证它是开放使用的nmap:

$> sudo nmap -sS -O 10.232.37.104 
Starting Nmap 7.00 (https://nmap.org) at 2017-10-04 14:19 EDT 
Nmap scan report for 10.232.37.104 
Host is up (0.023s latency). 
Not shown: 988 closed ports 
PORT  STATE SERVICE 
22/tcp open  ssh 

但我无法成功ssh到我的服务器。

谢谢。

回答

0

得爱窗户......大声笑。我得到它的工作使用以下步骤:

https://github.com/PowerShell/Win32-OpenSSH/issues/690 
You need to provide your account the following privilege "Replace a process 
level token" 
secpol.msc 
LocalPolicies -> User Rights Assignment 
Click the policy that says "Replace a process level token" and add your 
account. Log off and log in. 

这是如此明显,为什么我没有想到这一点!

相关问题